-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into manifesttest
# Conflicts: # .github/workflows/test.yml
- Loading branch information
Showing
41 changed files
with
757 additions
and
1,280 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "daily" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Mass Update Manifest | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
PackageIdentifier: | ||
description: "Package Identifier" | ||
required: true | ||
|
||
jobs: | ||
update: | ||
name: Update manifests | ||
runs-on: windows-latest | ||
env: | ||
WINGET_PKGS_FORK_REPO: ${{vars.WINGET_PKGS_FORK_REPO}} | ||
WINGET_PAT: ${{secrets.WINGET_PAT}} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: ${{ github.repository }} | ||
- name: Checkout winget-pkgs fork | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: ${{env.WINGET_PKGS_FORK_REPO}} | ||
token: ${{env.WINGET_PAT}} | ||
- name: Trigget Mass Package Update | ||
run: | | ||
pwd | ||
./Scripts/UpdateManifests.ps1 -PackageIdentifier ${{ github.event.inputs.PackageIdentifier }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# winget-pgks-updatepipelines | ||
**winget-pkgs** Pull requests by [damn-good-b0t](https://github.com/microsoft/winget-pkgs/pulls/damn-good-b0t) | ||
[**winget-pkgs**](https://github.com/microsoft/winget-pkgs.git) Pull requests by [damn-good-b0t](https://github.com/microsoft/winget-pkgs/pulls/damn-good-b0t) | ||
|
||
| Package Version Handling| Count| | ||
|----------------------------|---------------------------------------------------------------| | ||
| Script based |  | | ||
| GitHub Release based |  | | ||
| Script based |  | | ||
| GitHub Release based |  | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
. .\Scripts\common.ps1 | ||
|
||
$latestVersionUrl = $WebsiteURL | ||
|
||
$versionInfo = Get-ProductVersionFromFile -WebsiteURL $WebsiteURL -VersionInfoProperty "ProductVersion" | ||
|
||
return "$latestVersionUrl|x64", $versionInfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
. .\Scripts\common.ps1 | ||
|
||
|
||
$versionDirectory = Invoke-RestMethod -Uri $WebsiteURL | ||
$latestVersionDirectory = ($versionDirectory.channels | Where-Object id -eq "release").versions.version | ||
$latestVersionUrl = (($versionDirectory.channels | Where-Object id -eq "release").versions.files | Where-Object { ($_.target -eq "windows/amd64") -and ($_.type -eq "installer") }).url | ||
|
||
return $latestVersionDirectory, $latestVersionUrl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
. .\Scripts\common.ps1 | ||
|
||
|
||
# Currently not all versions have .exe installers | ||
#Text response with entries of form "<SHA> Fork-<Version>-<FUll|Delta>.nupkg <SIZE>" | ||
# Invoke-WebRequest -Uri "https://git-fork.com/update/win/RELEASES?id=Fork" -OutFile "RELEASES" | ||
# $releases = Get-Content "RELEASES" | ||
# $versionNumbers = $releases | ForEach-Object { | ||
# if ($_ -match 'Fork-(.*?)-') { | ||
# $Matches[1] | ||
# } | ||
# } | ||
# $versionNumbers = $versionNumbers | Sort-Object -Descending | Select-Object -Unique | ||
|
||
# $latestVersion = $versionNumbers[0] | ||
# $latestVersionUrl = "https://cdn.fork.dev/win/Fork-$latestVersion.exe" | ||
|
||
$websiteContent = Invoke-WebRequest -Uri $WebsiteURL | ||
$latestVersionUrl = $websiteContent.Links | Where-Object {$_.tagName -eq "A" -and $_.outerHTML.Contains('"downloadBtn2Win"')} | Select-Object -First 1 -ExpandProperty href | ||
# extract version from link | ||
$latestVersion = [regex]::Match($latestVersionUrl, '.*Fork-(.*).exe').Groups[1].Value | ||
|
||
return $latestVersion, "$latestVersionUrl" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
. .\Scripts\common.ps1 | ||
|
||
|
||
# Follow redirect of https://app.gitbutler.com/downloads/release/windows/x86_64/msi | ||
$website = $WebsiteURL | ||
$absolutURL=[System.Net.HttpWebRequest]::Create($website).GetResponse().ResponseUri.AbsoluteUri | ||
|
||
# regex to check if variable absolutURL is valid URL | ||
$regex = "^(http|https)://([\w-]+.)+[\w-]+(/[\w- ./?%&=])?$" | ||
if ($absolutURL -match $regex) { | ||
$latestVersionUrl = $absolutURL | ||
Write-Host "URL is valid" | ||
} | ||
else { | ||
Write-Host "URL is not valid" | ||
exit 1 | ||
} | ||
|
||
|
||
# get full name of file from link | ||
$fileName = $latestVersionUrl.Split("/")[-1] | ||
|
||
# Get Version via Regex. The version is the part betweet "GitButler_" and "_x64" | ||
$latestVersion = $fileName -replace ".*GitButler_(.*)_(x64|x86).*", '$1' | ||
|
||
return $latestVersion, $latestVersionUrl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
. .\Scripts\common.ps1 | ||
|
||
$latestVersionUrl = $WebsiteURL | ||
# download latest version from loupedeck.com and get version by filename | ||
$versionInfo = Get-ProductVersionFromFile -WebsiteURL $WebsiteURL -VersionInfoProperty "ProductVersionRaw" | ||
|
||
return $versionInfo, $latestVersionUrl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
. .\Scripts\common.ps1 | ||
|
||
$latestVersionUrl = $WebsiteURL | ||
# download latest version from loupedeck.com and get version by filename | ||
$versionInfo = Get-ProductVersionFromFile -WebsiteURL $WebsiteURL -VersionInfoProperty "ProductVersion" | ||
|
||
return $versionInfo, $latestVersionUrl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
. .\Scripts\common.ps1 | ||
|
||
$latestVersionUrl = $WebsiteURL | ||
|
||
# download latest version from loupedeck.com and get version by filename | ||
$versionInfo = Get-ProductVersionFromFile -WebsiteURL $WebsiteURL -VersionInfoProperty "ProductVersion" | ||
|
||
|
||
Write-Host "Found latest version: $versionInfo" | ||
$latestversion = $versionInfo | ||
# extract major and minor version e.g. 5.9 from 5.9.10 | ||
$majorMinorVersion = $versionInfo -replace '\.\d+$' | ||
$fullDownloadURL = "https://5145542.fs1.hubspotusercontent-na1.net/hubfs/5145542/Knowledge%20Base/LD%20Software%20Downloads/$majorMinorVersion/LoupedeckInstaller_" + $versionInfo + ".exe" | ||
|
||
Write-Host "Full download URL: $fullDownloadURL" | ||
|
||
# check if full download URL is valid | ||
$fullDownloadURLResponse = Invoke-WebRequest -Uri $fullDownloadURL -UseBasicParsing -Method Head | ||
if ($fullDownloadURLResponse.StatusCode -ne 200) { | ||
Write-Host "Full download URL is not valid" | ||
exit 1 | ||
} | ||
|
||
return $latestVersion, $fullDownloadURL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
. .\Scripts\common.ps1 | ||
|
||
$PackageFilter = "mongodb-compass" | ||
|
||
$Latest = Get-LatestMongoDBVersions -PackageFilter $PackageFilter -WebsiteURL $WebsiteURL | ||
|
||
$latestVersion = $Latest.Version | ||
$latestVersionUrl = $Latest.Url | ||
|
||
# Bring $latestVersion in correct format x.x.x.x | ||
# Check if $latestVersion is in the x.x.x format | ||
if ($latestVersion -match '^\d+\.\d+\.\d+$') { | ||
# Append .0 to $latestVersion | ||
$latestVersion = "$latestVersion.0" | ||
} | ||
|
||
return $latestVersion, $latestVersionUrl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
. .\Scripts\common.ps1 | ||
|
||
$PackageFilter = "mongodb-compass-isolated" | ||
|
||
$Latest = Get-LatestMongoDBVersions -PackageFilter $PackageFilter -WebsiteURL $WebsiteURL | ||
|
||
$latestVersion = $Latest.Version | ||
$latestVersionUrl = $Latest.Url | ||
|
||
# Bring $latestVersion in correct format x.x.x.x | ||
# Check if $latestVersion is in the x.x.x format | ||
if ($latestVersion -match '^\d+\.\d+\.\d+$') { | ||
# Append .0 to $latestVersion | ||
$latestVersion = "$latestVersion.0" | ||
} | ||
|
||
return $latestVersion, $latestVersionUrl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
. .\Scripts\common.ps1 | ||
|
||
$PackageFilter = "mongodb-compass-readonly" | ||
|
||
$Latest = Get-LatestMongoDBVersions -PackageFilter $PackageFilter -WebsiteURL $WebsiteURL | ||
|
||
$latestVersion = $Latest.Version | ||
$latestVersionUrl = $Latest.Url | ||
|
||
# Bring $latestVersion in correct format x.x.x.x | ||
# Check if $latestVersion is in the x.x.x format | ||
if ($latestVersion -match '^\d+\.\d+\.\d+$') { | ||
# Append .0 to $latestVersion | ||
$latestVersion = "$latestVersion.0" | ||
} | ||
|
||
return $latestVersion, $latestVersionUrl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
. .\Scripts\common.ps1 | ||
|
||
$PackageFilter = "mongodb-database-tools" | ||
|
||
$Latest = Get-LatestMongoDBVersions -PackageFilter $PackageFilter -WebsiteURL $WebsiteURL | ||
|
||
$latestVersion = $Latest.Version | ||
$latestVersionUrl = $Latest.Url | ||
|
||
return $latestVersion, $latestVersionUrl |
Oops, something went wrong.