diff options
author | MCMXC <16797721+mcmxcdev@users.noreply.github.com> | 2023-12-21 18:27:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-21 18:27:00 -0700 |
commit | 6259bb8833a10c1e3dcc84f418946bcf2db40f25 (patch) | |
tree | ceaf71f17493c1f8db4b9d37c9a17b006d5935bc /.github/workflows/winget-bucket-update.yml | |
parent | fix: custom services developer documentation link leads to franz pape (#1493) (diff) | |
download | ferdium-app-6259bb8833a10c1e3dcc84f418946bcf2db40f25.tar.gz ferdium-app-6259bb8833a10c1e3dcc84f418946bcf2db40f25.tar.zst ferdium-app-6259bb8833a10c1e3dcc84f418946bcf2db40f25.zip |
ci: update various github actions to latest (#1494)
- update `actions/checkout` from v3 to v4
- update `actions/setup-node` from v3 to v4
- change `nick-fields/retry` from v2.8.3 to v2
- update `bluwy/release-for-reddit-action` from v1.2.0 to v2
- lock all CI runners to fixed version rather than latest
Diffstat (limited to '.github/workflows/winget-bucket-update.yml')
-rw-r--r-- | .github/workflows/winget-bucket-update.yml | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/.github/workflows/winget-bucket-update.yml b/.github/workflows/winget-bucket-update.yml index 1013a8921..84886b46a 100644 --- a/.github/workflows/winget-bucket-update.yml +++ b/.github/workflows/winget-bucket-update.yml | |||
@@ -9,7 +9,7 @@ on: | |||
9 | workflow_dispatch: | 9 | workflow_dispatch: |
10 | inputs: | 10 | inputs: |
11 | message: | 11 | message: |
12 | description: "Channel to update" | 12 | description: 'Channel to update' |
13 | required: false | 13 | required: false |
14 | release: | 14 | release: |
15 | types: [published] | 15 | types: [published] |
@@ -19,13 +19,13 @@ env: | |||
19 | 19 | ||
20 | jobs: | 20 | jobs: |
21 | manual_winget_update: | 21 | manual_winget_update: |
22 | runs-on: windows-latest | 22 | runs-on: windows-2022 |
23 | name: "Manual winget update: ${{ github.event.inputs.message }}" | 23 | name: 'Manual winget update: ${{ github.event.inputs.message }}' |
24 | if: ${{ github.event_name == 'workflow_dispatch' }} | 24 | if: ${{ github.event_name == 'workflow_dispatch' }} |
25 | steps: | 25 | steps: |
26 | - name: "Install winget" | 26 | - name: 'Install winget' |
27 | # cf https://github.com/actions/virtual-environments/issues/910#issuecomment-1009640391 | 27 | # cf https://github.com/actions/virtual-environments/issues/910#issuecomment-1009640391 |
28 | # TODO: update urls to get more updated version | 28 | # TODO: update urls to get more updated version |
29 | run: | | 29 | run: | |
30 | $ErrorActionPreference = 'Stop' | 30 | $ErrorActionPreference = 'Stop' |
31 | 31 | ||
@@ -35,10 +35,10 @@ jobs: | |||
35 | iwr 'https://github.com/microsoft/winget-cli/releases/download/v1.1.12653/9c0fe2ce7f8e410eb4a8f417de74517e_License1.xml' -Outfile $env:TEMP\winget.license | 35 | iwr 'https://github.com/microsoft/winget-cli/releases/download/v1.1.12653/9c0fe2ce7f8e410eb4a8f417de74517e_License1.xml' -Outfile $env:TEMP\winget.license |
36 | 36 | ||
37 | Add-AppxProvisionedPackage -Online -PackagePath $env:TEMP\winget.msixbundle -LicensePath $env:TEMP\winget.license -DependencyPackagePath @("$env:TEMP\vclibs.appx", "$env:TEMP\vclibsuwp.appx") | 37 | Add-AppxProvisionedPackage -Online -PackagePath $env:TEMP\winget.msixbundle -LicensePath $env:TEMP\winget.license -DependencyPackagePath @("$env:TEMP\vclibs.appx", "$env:TEMP\vclibsuwp.appx") |
38 | - name: "Verify winget" | 38 | - name: 'Verify winget' |
39 | run: | | 39 | run: | |
40 | winget --info | 40 | winget --info |
41 | - name: "Get release tag" | 41 | - name: 'Get release tag' |
42 | run: | | 42 | run: | |
43 | if ("${{ contains(github.event.inputs.message, '[nightly]') }}" -eq $True) { | 43 | if ("${{ contains(github.event.inputs.message, '[nightly]') }}" -eq $True) { |
44 | $preRel = $True | 44 | $preRel = $True |
@@ -64,7 +64,7 @@ jobs: | |||
64 | echo "last_version=$lastVersion" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append | 64 | echo "last_version=$lastVersion" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append |
65 | echo "PACKAGE_NAME=$package" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append | 65 | echo "PACKAGE_NAME=$package" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append |
66 | 66 | ||
67 | - name: "Verify if version already exist on winget" | 67 | - name: 'Verify if version already exist on winget' |
68 | run: | | 68 | run: | |
69 | $lastVersion = '${{ env.last_version }}' | 69 | $lastVersion = '${{ env.last_version }}' |
70 | $versions = winget show --id '${{ env.PACKAGE_NAME }}' --versions --accept-source-agreements | 70 | $versions = winget show --id '${{ env.PACKAGE_NAME }}' --versions --accept-source-agreements |
@@ -73,7 +73,7 @@ jobs: | |||
73 | echo "version_exists=true" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append | 73 | echo "version_exists=true" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append |
74 | } | 74 | } |
75 | 75 | ||
76 | - name: "Publish update" | 76 | - name: 'Publish update' |
77 | if: ${{ env.version_exists != 'true' }} | 77 | if: ${{ env.version_exists != 'true' }} |
78 | run: | | 78 | run: | |
79 | $release=Invoke-RestMethod -Uri '${{ env.REPO_URL }}' | 79 | $release=Invoke-RestMethod -Uri '${{ env.REPO_URL }}' |
@@ -95,11 +95,10 @@ jobs: | |||
95 | Write-Host $command | 95 | Write-Host $command |
96 | Invoke-Expression $command | 96 | Invoke-Expression $command |
97 | 97 | ||
98 | |||
99 | winget_release: | 98 | winget_release: |
100 | name: "Update winget after publish: ${{ github.event.inputs.message }}" | 99 | name: 'Update winget after publish: ${{ github.event.inputs.message }}' |
101 | if: ${{ github.event_name == 'release' }} | 100 | if: ${{ github.event_name == 'release' }} |
102 | runs-on: windows-latest | 101 | runs-on: windows-2022 |
103 | steps: | 102 | steps: |
104 | - name: Check release type | 103 | - name: Check release type |
105 | run: | | 104 | run: | |