Skip to content

Commit c553cc8

Browse files
Nyholmxabbuh
authored andcommitted
[CI] Show exit code when job fails
1 parent 449f224 commit c553cc8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/unit-tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,13 @@ jobs:
155155
local ok=0
156156
local title="$1$FLIP"
157157
local start=$(date -u +%s)
158-
OUTPUT=$(bash -xc "$2" 2>&1) || ok=1
158+
OUTPUT=$(bash -xc "$2" 2>&1) || ok=$?
159159
local end=$(date -u +%s)
160160
161161
if [[ $ok -ne 0 ]]; then
162162
printf "\n%-70s%10s\n" $title $(($end-$start))s
163163
echo "$OUTPUT"
164+
echo "Job exited with: $ok"
164165
echo -e "\n::error::KO $title\\n"
165166
else
166167
printf "::group::%-68s%10s\n" $title $(($end-$start))s

0 commit comments

Comments
 (0)