Skip to content

Commit ba3d43b

Browse files
committed
Use compute-version in spring-artifactory-maven-release-staging
Signed-off-by: Josh Cummings <3627351+jzheaux@users.noreply.github.com>
1 parent 298acb4 commit ba3d43b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/spring-artifactory-maven-release-staging.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,17 @@ jobs:
7676
java-version: 24
7777
cache: maven
7878

79+
- name: Compute Version
80+
id: compute-version
81+
uses: spring-io/spring-release-actions/compute-version@0.0.3
82+
7983
- name: Evaluate Build Name
8084
id: build-name
8185
run: |
8286
branchVersion=${{ github.ref_name }}
8387
8488
if [ $branchVersion = 'main' ]; then
85-
snapshotVersion=$(mvn help:evaluate -Dexpression="project.version" -q -DforceStdout)
89+
snapshotVersion=${{ steps.compute-version.outputs.version }}
8690
branchVersion=${snapshotVersion%.*}.x
8791
fi
8892

0 commit comments

Comments
 (0)