diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 375c886..c04ca95 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -35,8 +35,8 @@ jobs: - name: Commit and push changes run: | - git add --all - git status --short -uno - git commit -m 'Update node_modules' - git show --stat-count=10 HEAD - git push + git add . + if output=$(git status --porcelain) && [ ! -z "$output" ]; then + git commit -m 'Update node_modules' + git push + fi