File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -37,17 +37,17 @@ jobs:
3737 java-version : ${{ matrix.java-version }}
3838
3939 # Set environment variable for the project version: "var_to_set=$(command_to_run)" >> sink
40- # - For maven: echo "PROJECT_VERSION =$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
41- # - For gradle: echo "PROJECT_VERSION =$(./gradlew properties | grep -Po '(?<=version: ).*')" >> $GITHUB_ENV
40+ # - For maven: echo "JRELEASER_PROJECT_VERSION =$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
41+ # - For gradle: echo "JRELEASER_PROJECT_VERSION =$(./gradlew properties | grep -Po '(?<=version: ).*')" >> $GITHUB_ENV
4242 - name : Extract project version to environment variable
43- run : echo "PROJECT_VERSION =$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
43+ run : echo "JRELEASER_PROJECT_VERSION =$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
4444
4545 # Check if a tag exists that matches the current project version.
4646 # Write the existence state to the step output 'tagExists'.
4747 - name : ' Check: package version has corresponding git tag'
4848 id : tagged
4949 shell : bash
50- run : git show-ref --tags --verify --quiet -- "refs/tags/${{ env.PROJECT_VERSION }}" && echo "tagExists=1" >> $GITHUB_OUTPUT || echo "tagExists=0" >> $GITHUB_OUTPUT
50+ run : git show-ref --tags --verify --quiet -- "refs/tags/${{ env.JRELEASER_PROJECT_VERSION }}" && echo "tagExists=1" >> $GITHUB_OUTPUT || echo "tagExists=0" >> $GITHUB_OUTPUT
5151
5252 # Run tests & build artifact
5353 - name : Build
7575 with :
7676 arguments : full-release
7777 env :
78- JRELEASER_PROJECT_VERSION : ${{ env.PROJECT_VERSION }}
78+ JRELEASER_PROJECT_VERSION : ${{ env.JRELEASER_PROJECT_VERSION }}
7979 JRELEASER_GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8080 JRELEASER_GPG_PASSPHRASE : ${{ secrets.JRELEASER_GPG_PASSPHRASE }}
8181 JRELEASER_GPG_PUBLIC_KEY : ${{ secrets.JRELEASER_GPG_PUBLIC_KEY }}
You can’t perform that action at this time.
0 commit comments