Skip to content

increment-minor

increment-minor #15

name: increment-minor
on:
workflow_dispatch:
jobs:
incrementMinor:
name: incrementMinor
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Grant Permission to Execute Gradle
run: chmod +x gradlew
- name: increment Minor Number
uses: gradle/gradle-build-action@v2
with:
arguments: incrementMinorVersion
- id: get_version
name: Retrieve version
run: echo "::set-output name=VERSION::$(./gradlew printVersionName | grep version | cut -f 2 -d =)"
- name: Commit and push the new version
run: |
git config --global user.name "github-actions"
git config --global user.email "[email protected]"
git commit -a -m "[githubAction] increment Minor Version to ${{ steps.get_version.outputs.VERSION }}"
git push