Add next dev version workflow
This commit is contained in:
40
.github/workflows/next-dev-version.yml
vendored
Normal file
40
.github/workflows/next-dev-version.yml
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
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.6.3
|
||||
- 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/build-zoo-handler@v0.0.4
|
||||
with:
|
||||
commit-changes-branch: main
|
||||
commit-changes-message: Next development version
|
||||
Reference in New Issue
Block a user