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 b4d6c42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/02-pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ 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
sh -c 'if [ $dos_exit_code -ne 0 ]; then exit $dos_exit_code; fi'
echo step3
wget -P /tmp https://aluigi.altervista.org/mytoolz/dtmf2num.zip
echo "187d43e4d57535da3386eee3accdbcd09526378e3258db7f1bd5afccd0c64360 /tmp/dtmf2num.zip" | sha256sum -c
Expand Down

0 comments on commit b4d6c42

Please sign in to comment.