We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee392b6 commit e926233Copy full SHA for e926233
.github/workflows/release.yml
@@ -39,9 +39,8 @@ jobs:
39
shell: bash
40
run: |
41
echo "VERSION=${{ github.event.inputs.version }}" >> $GITHUB_OUTPUT
42
- mvn versions:set -DnewVersion=${{ github.event.inputs.version }}-SNAPSHOT
43
- git commit -m "Releasing version ${{ github.event.inputs.version }}" pom.xml
44
- git push origin main
+ mvn -ntp -B versions:set -DnewVersion=${{ github.event.inputs.version }}-SNAPSHOT
+ git diff-index --quiet HEAD || git commit -m "Releasing version ${{ github.event.inputs.version }}" pom.xml
45
46
- name: Publish to GitHub Packages
47
run: mvn -ntp -B release:prepare release:perform
0 commit comments