Skip to content

Commit d4e682f

Browse files
committed
Get a failure check working.
1 parent ec3e424 commit d4e682f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/scripts.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ jobs:
4141
cat $FILE >> $GITHUB_STEP_SUMMARY
4242
echo "EXIT_CODE=$exit_code" >> $GITHUB_ENV
4343
44-
- name: Exit
4544
run: |
46-
if [ "$EXIT_CODE" -eq 0 ]; then
47-
echo "Exit code is not 0, as expected."
48-
else
49-
echo "Exit code was expected to fail. Something is wrong."
45+
if [ "$EXIT_CODE" == "0" ]; then
46+
echo "Script was expected to fail. Something is wrong."
5047
exit 1
48+
else
49+
echo "Exit code is not 0, as expected."
5150
fi
51+
- name: Exit

0 commit comments

Comments
 (0)