Skip to content

Commit 384663e

Browse files
committed
fix: use sha directly
1 parent af8964d commit 384663e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ jobs:
3737
working-directory: ./dist
3838
run: zip -r SusOps.zip SusOps.app
3939

40+
- name: Calculate SHA256
41+
id: sha
42+
working-directory: ./dist
43+
run: echo "sum=$(shasum -a 256 SusOps.zip | awk '{print $1}')" >> $GITHUB_OUTPUT
44+
4045
- name: Determine version
4146
id: version
4247
run: |
@@ -65,7 +70,8 @@ jobs:
6570
brew bump-cask-pr \
6671
mashb1t/susops/susops \
6772
--version ${{ steps.version.outputs.version }} \
68-
--url "https://github.com/mashb1t/susops-mac/releases/download/v${{ steps.version.outputs.version }}/SusOps.zip"
73+
--url "https://github.com/mashb1t/susops-mac/releases/download/v${{ steps.version.outputs.version }}/SusOps.zip" \
74+
--sha256 "${{ steps.sha.outputs.sum }}" \
6975
--no-browse --no-fork --no-audit --no-style
7076
env:
7177
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.BREW_PR_TOKEN }}

0 commit comments

Comments
 (0)