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"