From 8cd03d31947f05be3ea42157f3b7148899d33e98 Mon Sep 17 00:00:00 2001 From: Eric Willhoit Date: Fri, 10 Jan 2025 10:59:06 -0600 Subject: [PATCH] chore: attempt to capture error --- .github/workflows/get-signed-from-stampy.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/get-signed-from-stampy.yml b/.github/workflows/get-signed-from-stampy.yml index 564c351c..5777f104 100644 --- a/.github/workflows/get-signed-from-stampy.yml +++ b/.github/workflows/get-signed-from-stampy.yml @@ -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