Skip to content

Next Dev Version

Next Dev Version #30

name: Next Dev Version
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 1.8
- uses: jvalkeal/setup-maven@v1
with:
maven-version: 3.8.4
- uses: jfrog/setup-jfrog-cli@v1
with:
version: 1.46.4
env:
JF_ARTIFACTORY_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}
- name: Configure JFrog Cli
run: |
jfrog rt mvnc \
--server-id-deploy=repo.spring.io \
--repo-deploy-releases=libs-snapshot-local \
--repo-deploy-snapshots=libs-snapshot-local
- name: Change Version
run: |
jfrog rt mvn build-helper:parse-version versions:set \
-DprocessAllModules=true \
-DgenerateBackupPoms=false \
-Dartifactory.publish.artifacts=false \
-DnewVersion='${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.nextIncrementalVersion}-SNAPSHOT' \
-B
- name: Commit Next Dev Changes
uses: jvalkeal/[email protected]
with:
commit-changes-branch: 2.1.x
commit-changes-message: Next development version