From 1a289e7dca121446b24921f3fe4abfdbd926b555 Mon Sep 17 00:00:00 2001 From: Enrico Colasante Date: Mon, 17 Oct 2022 11:58:52 +0200 Subject: [PATCH] fix: Do not fail when there is nothing to commit bumping version --- .github/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2575a83..05cd40c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -23,7 +23,7 @@ jobs: git config --local user.email "action@github.com" git config --local user.name "GitHub Action" git add ./pom.xml - git commit -m "release: bump maven version" + git diff-index --quiet HEAD || git commit -m "release: bump maven version" - name: Push changes uses: ad-m/github-push-action@master @@ -45,4 +45,4 @@ jobs: nexus_password: ${{ secrets.NEXUS_PASSWORD }} gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }} - maven_profiles: "nexus" \ No newline at end of file + maven_profiles: "nexus"