We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec3e424 commit d4e682fCopy full SHA for d4e682f
.github/workflows/scripts.yaml
@@ -41,11 +41,11 @@ jobs:
41
cat $FILE >> $GITHUB_STEP_SUMMARY
42
echo "EXIT_CODE=$exit_code" >> $GITHUB_ENV
43
44
- - name: Exit
45
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."
+ if [ "$EXIT_CODE" == "0" ]; then
+ echo "Script was expected to fail. Something is wrong."
50
exit 1
+ else
+ echo "Exit code is not 0, as expected."
51
fi
+ - name: Exit
0 commit comments