Skip to content

Commit e25e9e4

Browse files
committed
Use compute-next-snapshot in spring-finalize-release
Signed-off-by: Josh Cummings <3627351+jzheaux@users.noreply.github.com>
1 parent 88bdd67 commit e25e9e4

1 file changed

Lines changed: 7 additions & 13 deletions

File tree

.github/workflows/spring-finalize-release.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ jobs:
3434
distribution: temurin
3535
java-version: 24
3636

37+
- name: Compute Next Snapshot
38+
id: next-snapshot
39+
uses: spring-io/spring-release-actions/compute-next-snapshot@0.0.3
40+
with:
41+
version: ${{ inputs.milestone }}
42+
3743
- name: Tag Release and Next Development Version
3844
id: tag-release
3945
run: |
@@ -52,19 +58,7 @@ jobs:
5258
git commit -a -m "[CI/CD] Release version ${{ inputs.milestone }}"
5359
git tag "v${{ inputs.milestone }}"
5460
55-
NEXT_VERSION="${{ inputs.milestone }}"
56-
57-
if [[ "$NEXT_VERSION" == *"-"* ]]
58-
then
59-
NEXT_VERSION=${NEXT_VERSION/-*}
60-
else
61-
MAJOR_MINOR=$(echo "$NEXT_VERSION" | cut -d '.' -f1-2)
62-
PATCH=$(echo "$NEXT_VERSION" | cut -d '.' -f3)
63-
PATCH=$((PATCH+1))
64-
NEXT_VERSION=$MAJOR_MINOR.$PATCH
65-
fi
66-
67-
NEXT_VERSION=${NEXT_VERSION}-SNAPSHOT
61+
NEXT_VERSION="${{ steps.next-snapshot.outputs.version }}"
6862
6963
if test -f pom.xml
7064
then

0 commit comments

Comments
 (0)