Skip to content

Commit

Permalink
Merge pull request #18 from dhis2/deploy-workflow-fix
Browse files Browse the repository at this point in the history
fix: Do not fail when there is nothing to commit bumping version
  • Loading branch information
enricocolasante authored Oct 17, 2022
2 parents 18bf4e8 + 1a289e7 commit dbe9c96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
git config --local user.email "[email protected]"
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
Expand All @@ -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"
maven_profiles: "nexus"

0 comments on commit dbe9c96

Please sign in to comment.