Skip to content

Commit 7532209

Browse files
Anton-4claude
andcommitted
fix: print bundle.sh output before failing in CI
GitHub Actions bash uses set -e by default, which caused the script to exit immediately when the command substitution failed, before the output could be printed. This made debugging impossible. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 2b4c74f commit 7532209

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,16 @@ jobs:
6262
- name: Bundle platform
6363
id: bundle
6464
run: |
65-
# Run bundle.sh and capture output
65+
# Run bundle.sh and capture output (disable set -e to ensure output is printed)
66+
set +e
6667
BUNDLE_OUTPUT=$(./bundle.sh 2>&1)
68+
EXIT_CODE=$?
69+
set -e
6770
echo "$BUNDLE_OUTPUT"
71+
if [ $EXIT_CODE -ne 0 ]; then
72+
echo "bundle.sh failed with exit code $EXIT_CODE"
73+
exit $EXIT_CODE
74+
fi
6875
6976
# Extract the tar.zst filename from "Created: /path/to/HASH.tar.zst" line
7077
BUNDLE_PATH=$(echo "$BUNDLE_OUTPUT" | grep "^Created:" | awk '{print $2}')

0 commit comments

Comments
 (0)