diff --git a/.github/workflows/fix-formatting-and-license.yml b/.github/workflows/fix-formatting-and-license.yml index fd89193..3859239 100644 --- a/.github/workflows/fix-formatting-and-license.yml +++ b/.github/workflows/fix-formatting-and-license.yml @@ -41,5 +41,8 @@ jobs: run: | git config --global user.name 'Github Actions' git config --global user.email 'adrian@abmgrt.dev' - git commit -am "Auto-corrected formatting and license file" - git push + git add -A + if ! git diff-index --quiet HEAD; then + git commit -m "Auto-corrected formatting and license file" + git push + fi