Skip to content

Commit

Permalink
ci: fix DOS error code propagation bug by exporting environment varia…
Browse files Browse the repository at this point in the history
…ble, so the if-statement further below has it in its context
  • Loading branch information
volkertb committed Aug 19, 2024
1 parent 50fbb51 commit 60f0969
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/02-pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
/usr/local/bin/run_cicd_dos.sh
# Propagate error code from DOS test or exit with error code 254 if the exit code file is missing
echo step1
dos_exit_code=$(cat test/exitcode.txt || echo 254)
export dos_exit_code=$(cat test/exitcode.txt || echo 254)
echo DOS exit code was $dos_exit_code
echo step2
if [ $dos_exit_code -ne 0 ]; then exit $dos_exit_code; fi
Expand Down

0 comments on commit 60f0969

Please sign in to comment.