Merge pull request #3 from storytold/fix/freebsd-draft-checksums

Keep the checksum file out of its own list
This commit is contained in:
Brandon Thomas authored and GitHub committed 2026-11-02 02:54:26 -05:00
commit cedabf0203
1 file changed
+3 -1
+3 -1
View File
@@ -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