Skip to content

Commit

Permalink
chore: attempt to capture error
Browse files Browse the repository at this point in the history
  • Loading branch information
iowillhoit committed Jan 10, 2025
1 parent f9b06dc commit 8cd03d3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/get-signed-from-stampy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,15 @@ jobs:
- name: upload to CLI s3
id: upload
run: |
# Temp disable exit on error
set +e
# Run script and redirect stderr to stdout
OUTPUT=$(node scripts/stampy-signed-upload.js 2>&1)
set -e
# Check for non-zero exit code and stop the workflow if an error occured
# Check for non-zero exit code and stop the workflow if an error occurred
if [ $? -ne 0 ]; then
echo "An error occured:"
echo "An error occurred:"
echo $OUTPUT
exit 1
fi
Expand Down

0 comments on commit 8cd03d3

Please sign in to comment.