Skip to content

Commit cb47d38

Browse files
committed
Set variable in GHA environment
1 parent ed90e60 commit cb47d38

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,22 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v4
1212
- name: Evaluate release information
13-
run: source ./release-versions.txt
13+
run: |
14+
source ./release-versions.txt
15+
echo "java_version=$JAVA_VERSION" >> $GITHUB_ENV
1416
- name: Set up JDK
1517
uses: actions/setup-java@v4
1618
with:
1719
distribution: 'temurin'
18-
java-version: ${{ env.JAVA_VERSION }}
20+
java-version: ${{ env.java_version }}
1921
cache: 'maven'
2022
server-id: central
2123
server-username: MAVEN_USERNAME
2224
server-password: MAVEN_PASSWORD
2325
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
2426
gpg-passphrase: MAVEN_GPG_PASSPHRASE
2527
- name: Release JMS Client
26-
run: |
28+
run: |
2729
git config user.name "rabbitmq-ci"
2830
git config user.email "rabbitmq-ci@users.noreply.github.com"
2931
ci/release-jms-client.sh

0 commit comments

Comments
 (0)