diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6f3ca9a5..437de712 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,5 +18,10 @@ jobs: git pull git config --local user.email "action@github.com" git config --local user.name "GitHub Action" - git add dist && git commit -m "Build action" - git push + git add dist + if git diff --staged --quiet; then + echo "::notice::No changes to commit" + else + git commit -m "Build action" + git push + fi