Skip to content

Commit

Permalink
avoid readme updates with no changes in detections
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl committed Mar 22, 2020
1 parent b95aa41 commit 9bd6dc4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/update-readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ jobs:
- name: push changes & create PR
run: |
if [[ $( git diff --numstat ) ]]
changes=($( git diff --numstat ))
if [[ ${changes[0]} -gt 1 ]]
then
cd $GITHUB_WORKSPACE
git push origin --delete updatereadme || true
Expand Down

0 comments on commit 9bd6dc4

Please sign in to comment.