Skip to content

Commit 88bdd67

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

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/spring-artifactory-maven-snapshot.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ jobs:
5959
java-version: 24
6060
cache: maven
6161

62+
- name: Compute Version
63+
id: compute-version
64+
uses: spring-io/spring-release-actions/compute-version@0.0.3
65+
6266
- name: Build and Deploy
6367
run: ./mvnw -B -ntp -DaltDeploymentRepository=local::file:deployment-repository ${{ inputs.mavenArgs }} deploy
6468

@@ -70,7 +74,7 @@ jobs:
7074
branchVersion=${{ github.ref_name }}
7175
7276
if [ $branchVersion = 'main' ]; then
73-
snapshotVersion=$(mvn help:evaluate -Dexpression="project.version" -q -DforceStdout)
77+
snapshotVersion=${{ steps.compute-version.outputs.version }}
7478
branchVersion=${snapshotVersion%.*}.x
7579
fi
7680

0 commit comments

Comments
 (0)