Skip to content

Next Dev Version

Next Dev Version #28

name: Next Dev Version
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Change Version
run: |
snapshotVersion=$( awk -F '=' '$1 == "version" { print $2 }' gradle.properties )
plainVersion=${snapshotVersion%-SNAPSHOT}
nextPlainVersion=$( echo $plainVersion | awk -F. '/[0-9]+\./{$NF++;print}' OFS=. )
nextVersion=${nextPlainVersion}-SNAPSHOT
sed -i "s/version=$snapshotVersion/version=$nextVersion/" gradle.properties
- name: Commit Next Dev Changes
uses: jvalkeal/[email protected]
with:
commit-changes-branch: 3.0.x
commit-changes-message: Next development version