Skip to content

Commit dbe9c96

Browse files
Merge pull request #18 from dhis2/deploy-workflow-fix
fix: Do not fail when there is nothing to commit bumping version
2 parents 18bf4e8 + 1a289e7 commit dbe9c96

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
git config --local user.email "action@github.com"
2424
git config --local user.name "GitHub Action"
2525
git add ./pom.xml
26-
git commit -m "release: bump maven version"
26+
git diff-index --quiet HEAD || git commit -m "release: bump maven version"
2727
2828
- name: Push changes
2929
uses: ad-m/github-push-action@master
@@ -45,4 +45,4 @@ jobs:
4545
nexus_password: ${{ secrets.NEXUS_PASSWORD }}
4646
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
4747
gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}
48-
maven_profiles: "nexus"
48+
maven_profiles: "nexus"

0 commit comments

Comments
 (0)