Skip to content

Commit af55596

Browse files
Update release.yml
1 parent c5c4b31 commit af55596

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ on:
2727
jobs:
2828
release_binder:
2929
runs-on: ubuntu-latest
30+
env:
31+
java_environment: zulu
32+
jre_version: 17
3033
permissions:
3134
contents: write
3235
packages: write
@@ -60,11 +63,11 @@ jobs:
6063
run: echo "Could not (${{steps.secrets.outcome}}) log into vault using cicd-workflows-secret-read-role. Has this repo been onboarded in maas-vault-configuration?"; exit 1
6164

6265
# Setup all secrets and env needed for the build
63-
- name: Set up JDK ${{ inputs.jre_version }} (${{inputs.java_environment}})
66+
- name: Set up JDK ${{ env.jre_version }} (${{env.java_environment}})
6467
uses: actions/setup-java@v4
6568
with:
66-
distribution: ${{ inputs.java_environment }}
67-
java-version: ${{ inputs.jre_version }}
69+
distribution: ${{ env.java_environment }}
70+
java-version: ${{ env.jre_version }}
6871
cache: 'maven'
6972

7073
- name: Import GPG key
@@ -128,7 +131,6 @@ jobs:
128131
mvn deploy -B -DreleaseTarget=github -s maven/settings.xml $SKIP_FLAGS_ALL_TESTS
129132
130133
- name: Deploy Artifacts (Maven Central)
131-
if: ${{ inputs.push_external }}
132134
env:
133135
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
134136
run: >-
@@ -138,7 +140,7 @@ jobs:
138140
run: >-
139141
mvn validate
140142
scm:checkin -B
141-
-DscmVersion=${{ inputs.main_branch }}
143+
-DscmVersion=${{ inputs.release_branch }}
142144
-DscmVersionType=branch
143145
-Dmessage="[ci skip] prepare release ${{ inputs.release_version }}" &&
144146
mvn scm:tag -B -Dtag=${{ inputs.release_version }}
@@ -161,7 +163,7 @@ jobs:
161163
-Dproperty=changelist
162164
-DnewVersion="-SNAPSHOT" &&
163165
mvn validate scm:checkin -B
164-
-DscmVersion=${{ inputs.main_branch }}
166+
-DscmVersion=${{ inputs.release_branch }}
165167
-DscmVersionType=branch
166168
-Dmessage="[ci skip] prepare for next development iteration"
167169

0 commit comments

Comments
 (0)