Skip to content

Commit 89ff1ce

Browse files
committed
Revert env-name change
1 parent 6aca91e commit 89ff1ce

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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
@@ -75,7 +75,7 @@ jobs:
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 }}

0 commit comments

Comments
 (0)