A github action to increment a semver string consisting of MAJOR, MINOR and PATCH numbers.
- name: Simple Semver
id: semver
uses: matt-FFFFFF/[email protected]
with:
semver-input: '1.2.34'
increment: p
- name: Use new semver
run: echo ${{ steps.semver.outputs.semver }}
Three element string with MAJOR, MINOR and PATCH numbers, seperated by dots .
Must be one of the following:
m
- increment MAJOR version number and zero all to the righti
- increment MINOR version number and zero all to the rightp
- increment PATCH version number
Contains the new semver string