From 83290e42b4971c406ee6f8b96548a2faccef0309 Mon Sep 17 00:00:00 2001 From: Andrii Bodnar Date: Fri, 5 Jan 2024 16:26:55 +0200 Subject: [PATCH] ci: fix chocolatey publishing (2) --- .github/workflows/publish.yml | 7 ++++++- packages/chocolatey/tools/chocolateyinstall.ps1 | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4eaee80c..07ddc648 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -167,11 +167,16 @@ jobs: run: | mv packages/chocolatey chocolatey + # We need to update the checksum in the 'chocolateyinstall.ps1' file. + # In case of manual deploy from branch, don't forget to update the checksum manually before deploying (get it from the latest release assets). - name: Update checksum + if: github.event_name == 'release' run: | echo "New Hash: ${{ needs.assets.outputs.checksum }}\n" sed -i "s/checksum = '.*'/checksum = '${{ needs.assets.outputs.checksum }}'/g" chocolatey/tools/chocolateyinstall.ps1 - cat chocolatey/tools/chocolateyinstall.ps1 + + - name: check chocolateyinstall.ps1 + run: cat chocolatey/tools/chocolateyinstall.ps1 - name: Choco pack uses: crazy-max/ghaction-chocolatey@v2 diff --git a/packages/chocolatey/tools/chocolateyinstall.ps1 b/packages/chocolatey/tools/chocolateyinstall.ps1 index 25e86375..4f4b06e7 100644 --- a/packages/chocolatey/tools/chocolateyinstall.ps1 +++ b/packages/chocolatey/tools/chocolateyinstall.ps1 @@ -7,7 +7,7 @@ $packageArgs = @{ packageName = $packageName unzipLocation = $toolsDir url = 'https://github.com/crowdin/crowdin-cli/releases/latest/download/crowdin-cli.zip' - checksum = '9078bcacbb481eb01fbbfaf6bef87322bb1ca8d6835b543517e913127e0089c4' + checksum = 'fcaf4af368a817f7dccc363791a357526d13740f58eb16945185088918162afa' checksumType = 'sha256' } Install-ChocolateyZipPackage @packageArgs