File tree 1 file changed +9
-9
lines changed
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 17
17
18
18
steps :
19
19
- uses : actions/checkout@v2
20
+ with :
21
+ ref : ${{ github.event.release.head.ref }}
20
22
21
23
- name : Set up Java for publishing to Maven Central Repository
22
24
uses : actions/setup-java@v2
@@ -57,12 +59,10 @@ jobs:
57
59
- name : Roll pom version to next patch version
58
60
run : mvn build-helper:parse-version versions:set -DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.nextIncrementalVersion}-SNAPSHOT versions:commit
59
61
60
- - name : Commit New Snapshot Version (if changed)
61
- run : |
62
- if [[ `git status --porcelain` ]]; then
63
- git config --global user.name 'mmadson'
64
- git config --global user.email '[email protected] '
65
- git add -A
66
- git commit -m "Rolling Maven Version to next snapshot"
67
- git push
68
- fi
62
+ - name : Commit Pom Version Changes Back to main branch
63
+ uses : EndBug/add-and-commit@v7
64
+ with :
65
+ author_name : Matt Madson
66
+
67
+ branch : main
68
+ message : ' Roll Pom Version'
You can’t perform that action at this time.
0 commit comments