Skip to content

Commit c706bce

Browse files
committed
try to fix exit code in case fail is set to false
1 parent a92a07d commit c706bce

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ echo "exit_code=$exit_code" >> $GITHUB_OUTPUT
7373
# If `fail` is set to `true` (and it is by default), propagate the real exit
7474
# value to the workflow runner. This will cause the pipeline to fail on
7575
# `exit != # 0`.
76+
# Otherwise, always exit cleanly with status code 0.
7677
if [ "$INPUT_FAIL" = true ] ; then
7778
exit ${exit_code}
79+
else
80+
exit 0
7881
fi

0 commit comments

Comments
 (0)