Update .forgejo/workflows/release.yml
Some checks failed
Build Resilient App. / build (push) Has been cancelled
Some checks failed
Build Resilient App. / build (push) Has been cancelled
This commit is contained in:
parent
935e16d44e
commit
7cddcec86c
1 changed files with 30 additions and 0 deletions
|
@ -106,3 +106,33 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: app-backend
|
name: app-backend
|
||||||
path: target/resilient*.jar
|
path: target/resilient*.jar
|
||||||
|
|
||||||
|
# ##################################################################
|
||||||
|
# ## THIS IS A RELEASE - Change master version to next SNAPSHOT ##
|
||||||
|
# ## #4. Checkout master ##
|
||||||
|
# ## #5. Calculate the new version string ##
|
||||||
|
# ## Update pom.xml ##
|
||||||
|
# ## Calculate the new version string ##
|
||||||
|
- name: Checkout main
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
ref: master
|
||||||
|
|
||||||
|
- name: Bump to next SNAPSHOT version
|
||||||
|
run: |
|
||||||
|
CURRENT=$(echo "${GITHUB_REF##refs/tags/v}")
|
||||||
|
MAJOR=$(echo $CURRENT | cut -d. -f1)
|
||||||
|
MINOR=$(echo $CURRENT | cut -d. -f2)
|
||||||
|
PATCH=$(echo $CURRENT | cut -d. -f3)
|
||||||
|
NEXT_PATCH=$((PATCH + 1))
|
||||||
|
NEXT_VERSION="$MAJOR.$MINOR.$NEXT_PATCH-SNAPSHOT"
|
||||||
|
|
||||||
|
mvn versions:set -DnewVersion=$NEXT_VERSION
|
||||||
|
mvn versions:commit
|
||||||
|
|
||||||
|
git config user.name "forgejo-actions"
|
||||||
|
git config user.email "ci@forgejo.local"
|
||||||
|
git commit -am "Start next development cycle $NEXT_VERSION"
|
||||||
|
git push origin master
|
||||||
|
# ## ##
|
||||||
|
# ##################################################################
|
Loading…
Add table
Add a link
Reference in a new issue