diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 708e699..7ec1cf8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,7 +24,7 @@ jobs: with: fetch-depth: 0 - id: git-describe-semver - uses: choffmeister/git-describe-semver@main + uses: choffmeister/git-describe-semver@next-release-action with: version: latest dir: . @@ -46,7 +46,7 @@ jobs: with: fetch-depth: 0 - id: git-describe-semver - uses: choffmeister/git-describe-semver@main + uses: choffmeister/git-describe-semver@next-release-action with: version: 0.3.11 dir: . diff --git a/action.yaml b/action.yaml index ed684bf..56ec998 100644 --- a/action.yaml +++ b/action.yaml @@ -22,6 +22,9 @@ inputs: prerelease-timestamped: description: 'Use timestamp instead of commit count for prerelease' default: 'false' + next-release: + description: 'Bump current version to next release (choices: "major", "minor", "patch")' + default: '' outputs: version: description: 'Version output from git-describe-semver' @@ -53,6 +56,7 @@ runs: --prerelease-prefix="${{ inputs.prerelease-prefix }}" \ --prerelease-suffix="${{ inputs.prerelease-suffix }}" \ --prerelease-timestamped="${{ inputs.prerelease-timestamped }}" \ + ${{ inputs.next-release != '' && format('--next-release="{0}"', inputs.next-release) || '' }} \ --format="version=" \ $GITHUB_OUTPUT shell: bash