GitHub action to increment the Version provided
Create new .github/workflows/dostuff.yml file:
name: Do stuff
on:
push:
branches:
- master
jobs:
DoStuff:
name: Do Stuff
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Update Version
id: update_version
uses: mwbowers81/update-version
with:
VERSION: 1.2.3.4
INCREMENT_POSITION: 3
-name: Next Step
run: echo "${{ steps.get_version.outputs.VERSION }}"| Input | Description |
|---|---|
| VERSION | Version number to increment |
| INCREMENT_POSITION | Position to increment. 1 = Major, 2 = Minor, 3 = Build (default), 4 = Revision |
| Output | Description |
|---|---|
| VERSION | Incremented Version |