Skip to content

Commit

Permalink
If command on git diff (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-rozario authored Apr 24, 2023
1 parent 82857da commit c0b5495
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@ git config --global --add safe.directory /github/workspace
git config --global user.name "$GITHUB_ACTOR"
git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"

git diff --exit-code --stat | true
if [ ${PIPESTATUS[0]} -eq 0 ]
then
exit 0
fi
if (git diff --exit-code --stat); then exit 0; fi

git add -A
git commit -m "Updated $INPUT_PROJECT_NAME requirements file"
Expand Down

0 comments on commit c0b5495

Please sign in to comment.