Skip to content

Commit

Permalink
Merge pull request #31 from homoluctus/releases/v1
Browse files Browse the repository at this point in the history
Fix: terminate safely if no git diff
  • Loading branch information
homoluctus authored Sep 15, 2019
2 parents c7bdc32 + 8fb0cd2 commit 2c15f23
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,13 @@ jobs:
- name: Git commit
run: |
git status
git add -A
DIFF=`git diff --cached --numstat | wc -l`
if [ $DIFF -eq 0 ]; then
exit 0
fi
git commit -am '[UPDATE] prepare for release'
- name: Git push
Expand Down

0 comments on commit 2c15f23

Please sign in to comment.