File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed
Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change 3535 echo "Git tag: $RELEASE_VERSION"
3636 echo "Pom version: $POM_VERSION"
3737
38- if [ "${ RELEASE_VERSION}-SNAPSHOT " != "$POM_VERSION" ]; then
38+ if [ "$RELEASE_VERSION" != "$POM_VERSION" ]; then
3939 echo "Error: Git tag ($RELEASE_VERSION) does not match pom.xml version ($POM_VERSION)"
4040 exit 1
4141 fi
5353 echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV
5454 shell : bash
5555
56- - name : Update pom.xml to release version
57- run : |
58- mvn versions:set -DnewVersion=${{ env.RELEASE_VERSION }} -B -q
59- git commit -am "Set version to ${{ env.RELEASE_VERSION }}" || echo "No changes"
60- git push origin "HEAD:${GITHUB_REF_NAME}"
61- env :
62- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
63-
6456 - name : Run tests
6557 run : mvn clean verify -B
6658
Original file line number Diff line number Diff line change 55
66 <groupId >io.github.computerdaddyguy</groupId >
77 <artifactId >jfiletreeprettyprinter</artifactId >
8- <version >0.0.1-SNAPSHOT </version >
8+ <version >0.0.1</version >
99
1010 <packaging >jar</packaging >
1111 <name >JFileTreePrettyPrinter</name >
You can’t perform that action at this time.
0 commit comments