Skip to content

Commit

Permalink
ci: fix chocolatey publishing (2) (#700)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-bodnar authored Jan 5, 2024
1 parent bb4a82c commit 0d8fc63
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/chocolatey/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0d8fc63

Please sign in to comment.