Skip to content

Commit

Permalink
Exit if no requirement file generated (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-rozario committed Apr 24, 2023
1 parent 3ddff18 commit 82857da
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ sh -c "ls"
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

git add -A
git commit -m "Updated $INPUT_PROJECT_NAME requirements file"
git push -u origin HEAD

0 comments on commit 82857da

Please sign in to comment.