Skip to content

Commit 731b836

Browse files
authored
build: update release workflow for sha256 command (#371)
Signed-off-by: Ben Stickel <[email protected]>
1 parent 7e3447b commit 731b836

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/releaser.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ jobs:
146146
#!/bin/bash
147147
shopt -s expand_aliases
148148
cd .dist
149-
sha256sum *.tar.gz > checksums.txt
149+
sha256 *.tar.gz > checksums.txt
150150
FILES="*"
151151
for f in $FILES;
152152
do
@@ -155,7 +155,7 @@ jobs:
155155
cosign sign-blob --key <(echo -n "${COSIGN_KEY}") "$f" > "$f.sig"
156156
;;
157157
*.tar.gz)
158-
sha256sum "$f" | cut -d " " -f 1 > "$f.sha256"
158+
sha256 "$f" | cut -d " " -f 4 > "$f.sha256"
159159
cosign sign-blob --key <(echo -n "${COSIGN_KEY}") "$f" > "$f.sig"
160160
;;
161161
esac

0 commit comments

Comments
 (0)