We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba3d43b commit 88bdd67Copy full SHA for 88bdd67
1 file changed
.github/workflows/spring-artifactory-maven-snapshot.yml
@@ -59,6 +59,10 @@ jobs:
59
java-version: 24
60
cache: maven
61
62
+ - name: Compute Version
63
+ id: compute-version
64
+ uses: spring-io/spring-release-actions/compute-version@0.0.3
65
+
66
- name: Build and Deploy
67
run: ./mvnw -B -ntp -DaltDeploymentRepository=local::file:deployment-repository ${{ inputs.mavenArgs }} deploy
68
@@ -70,7 +74,7 @@ jobs:
70
74
branchVersion=${{ github.ref_name }}
71
75
72
76
if [ $branchVersion = 'main' ]; then
73
- snapshotVersion=$(mvn help:evaluate -Dexpression="project.version" -q -DforceStdout)
77
+ snapshotVersion=${{ steps.compute-version.outputs.version }}
78
branchVersion=${snapshotVersion%.*}.x
79
fi
80
0 commit comments