Skip to content

Commit

Permalink
Update maven-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mmadson authored Jun 29, 2021
1 parent 49073d0 commit 1cb580b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:

steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.release.head.ref }}

- name: Set up Java for publishing to Maven Central Repository
uses: actions/setup-java@v2
Expand Down Expand Up @@ -57,12 +59,10 @@ jobs:
- name: Roll pom version to next patch version
run: mvn build-helper:parse-version versions:set -DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.nextIncrementalVersion}-SNAPSHOT versions:commit

- name: Commit New Snapshot Version (if changed)
run: |
if [[ `git status --porcelain` ]]; then
git config --global user.name 'mmadson'
git config --global user.email '[email protected]'
git add -A
git commit -m "Rolling Maven Version to next snapshot"
git push
fi
- name: Commit Pom Version Changes Back to main branch
uses: EndBug/add-and-commit@v7
with:
author_name: Matt Madson
author_email: [email protected]
branch: main
message: 'Roll Pom Version'

0 comments on commit 1cb580b

Please sign in to comment.