File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 6060
6161 - name : Publish to Maven Central
6262 env :
63- # TRAVIS_TAG: ${{ github.event.release.tag_name }} # for setMavenVersion
6463 GHA_TAG : ${{ github.ref }} # non PR only need to get last part
6564 OSSRH_USERNAME : ${{ secrets.OSSRH_USERNAME }} # for .travis.settings.xml
6665 OSSRH_PASSWORD : ${{ secrets.OSSRH_USERNAME }}
Original file line number Diff line number Diff line change 55export GHA_TAG=${GHA_TAG##*/ } # Get the last part for true tag name - "refs/heads/9260_gha"
66
77if [[ -n " ${GHA_TAG} " ]]; then
8- printf " \n>>>>> Setting artifact version #'s to: %s\n" ${GHA_TAG: 1 }
8+ printf " \n>>>>> Setting artifact version #'s to: %s\n" ${GHA_TAG}
99 mvn versions:set -DnewVersion=${GHA_TAG: 1} -DgenerateBackupPoms=false
1010else
11- printf " \n>>>>> Bypassing artifact version setting for non-tagged build %s\n" ${GHA_TAG: 1 }
11+ printf " \n>>>>> Bypassing artifact version setting for non-tagged build %s\n" ${GHA_TAG}
1212fi
1313
You can’t perform that action at this time.
0 commit comments