mirror of
https://github.com/storytold/materialcraft.git
synced 2026-11-19 14:01:02 +01:00
Keep the checksum file out of its own list
The FreeBSD draft step redirected into SHA256SUMS.txt before the glob expanded, so the file listed itself with the hash of an empty file and sha256sum -c failed on it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b3c79c155e
commit
6c485cf3eb
1 file changed
+3
-1
@@ -315,6 +315,8 @@ jobs:
|
||||
[ "$(gh release view "$tag" --json isDraft --jq .isDraft)" = true ]
|
||||
gh release download "$tag" --pattern SHA256SUMS.txt --dir "$RUNNER_TEMP"
|
||||
# The shared draft job also picks up any archive that finished before it ran.
|
||||
{ grep -v -- '-freebsd-' "$RUNNER_TEMP/SHA256SUMS.txt" || true; sha256sum -- *; } | sort -k2 >SHA256SUMS.txt
|
||||
# Written outside this directory, or the * below would list the checksum file itself.
|
||||
{ grep -v -- '-freebsd-' "$RUNNER_TEMP/SHA256SUMS.txt" || true; sha256sum -- *; } | sort -k2 >"$RUNNER_TEMP/SHA256SUMS.new"
|
||||
mv "$RUNNER_TEMP/SHA256SUMS.new" SHA256SUMS.txt
|
||||
gh release upload "$tag" --clobber -- *
|
||||
cat SHA256SUMS.txt
|
||||
Reference in new issue
Block a user