Skip to content

Commit

Permalink
try to fix exit code in case fail is set to false
Browse files Browse the repository at this point in the history
  • Loading branch information
mre committed Oct 9, 2024
1 parent a92a07d commit c706bce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ echo "exit_code=$exit_code" >> $GITHUB_OUTPUT
# If `fail` is set to `true` (and it is by default), propagate the real exit
# value to the workflow runner. This will cause the pipeline to fail on
# `exit != # 0`.
# Otherwise, always exit cleanly with status code 0.
if [ "$INPUT_FAIL" = true ] ; then
exit ${exit_code}
else
exit 0
fi

0 comments on commit c706bce

Please sign in to comment.