GitHub Action used to compute the next release version based on the following format:
<Year>.<ISO week number>.<increment>-<release candidate increment>
To use the action you can add the following to your GitHub Action workflow file:
jobs:
build:
name: buildruns-on: ubuntu-lateststeps:
- name: Check out codeuses: actions/checkout@v2
- name: Next versionid: next_versionuses: sortlist/release-version-action@mainwith:
prefix: vprerelease: trueprerelease-prefix: rc.
- name: Show versionrun: echo "${{ steps.next_version.outputs.version }}"prefix:- a prefix added to the version (default:v)prerelease:- if the current version represents a prerelease, incrementing the prerelease counter (default:false)prerelease-prefix:- the prefix of the pre-release part of the version (default:rc.)
version- will contain the computed version
LC_CTYPE=C ./test/test.bats