Skip to content

Commit

Permalink
Update entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 authored Aug 29, 2023
1 parent 2568af0 commit 0165c74
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ if [[ -n "$CHANGED_FILES" ]]; then
echo "changed_files=$CHANGED_FILES" >> "$GITHUB_OUTPUT"
fi

if [[ "$INPUT_FAIL_IF_CHANGED" == "true" ]]; then
if [[ -n "$INPUT_FAIL_MSG" ]]; then
echo "$INPUT_FAIL_MSG"
fi
exit 1
fi

else
echo "No changes found."

Expand All @@ -67,10 +74,3 @@ else
fi

echo "::endgroup::"

if [[ "$INPUT_FAIL_IF_CHANGED" == "true" ]] && [[ -n "$CHANGED_FILES" ]]; then
if [[ -n "$INPUT_FAIL_MSG" ]]; then
echo "$INPUT_FAIL_MSG"
fi
exit 1
fi

0 comments on commit 0165c74

Please sign in to comment.