Next Dev Version #50
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Next Dev Version | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- 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.2.x | |
commit-changes-message: Next development version |