From 508a392a94ff2d70c0594a5da4a079f47d946213 Mon Sep 17 00:00:00 2001 From: Adrian Baumgart Date: Sun, 31 Mar 2024 21:46:07 +0200 Subject: [PATCH] Update fix-formatting-and-license.yml --- .github/workflows/fix-formatting-and-license.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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