File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 : |
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
You can’t perform that action at this time.
0 commit comments