From bb89ab2185740738188ce7a2686a7818ccf92a66 Mon Sep 17 00:00:00 2001 From: Alexander <88254229+Fulminazzo@users.noreply.github.com> Date: Wed, 3 Apr 2024 00:44:20 +0200 Subject: [PATCH] Added check for changes before pushing --- .github/workflows/gradle.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index e75082b5..7be53f21 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -73,6 +73,5 @@ jobs: git config user.name "GitHub Actions" git config user.email "41898282+github-actions[bot]@users.noreply.github.com" git add . - git commit -m "Update Jacoco badge" - git push origin badges + if [[ $(git commit -m "Update Jacoco badge") ]]; then git push origin badges; fi shell: bash