ci(github-actions): fix release workflow not using metadata versions
All checks were successful
Build / build (pull_request) Successful in 1m56s
All checks were successful
Build / build (pull_request) Successful in 1m56s
This commit is contained in:
parent
ba95e7aab2
commit
a624ca234a
1 changed files with 6 additions and 1 deletions
7
.github/workflows/release.yaml
vendored
7
.github/workflows/release.yaml
vendored
|
@ -38,6 +38,11 @@ jobs:
|
||||||
echo '::error::Next development version should be a SNAPSHOT version.'
|
echo '::error::Next development version should be a SNAPSHOT version.'
|
||||||
exit 1
|
exit 1
|
||||||
|
|
||||||
|
- name: Set environment variables
|
||||||
|
run: |
|
||||||
|
echo "CURRENT_VERSION=${{steps.metadata.outputs.current-version}}" >> $GITHUB_ENV
|
||||||
|
echo "NEXT_VERSION=${{steps.metadata.outputs.next-version}}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Configure SSH and Git
|
- name: Configure SSH and Git
|
||||||
env:
|
env:
|
||||||
SSH_DIR: /root/.ssh
|
SSH_DIR: /root/.ssh
|
||||||
|
@ -68,4 +73,4 @@ jobs:
|
||||||
run: ./mvnw $COMMON_MAVEN_OPTS quarkus:go-offline
|
run: ./mvnw $COMMON_MAVEN_OPTS quarkus:go-offline
|
||||||
|
|
||||||
- name: Prepare release
|
- name: Prepare release
|
||||||
run: ./mvnw $COMMON_MAVEN_OPTS release:prepare
|
run: ./mvnw $COMMON_MAVEN_OPTS release:prepare -DreleaseVersion=${CURRENT_VERSION} -DdevelopmentVersion=${NEXT_VERSION}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue