Skip to content

Commit

Permalink
Readd next-release support to action
Browse files Browse the repository at this point in the history
  • Loading branch information
choffmeister committed Dec 9, 2023
1 parent 1235d19 commit 13a627a
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -47,12 +50,13 @@ runs:
- id: git-describe-semver
run: |
git-describe-semver \
--dir="${{ inputs.dir }}" \
--fallback="${{ inputs.fallback }}" \
--drop-prefix="${{ inputs.drop-prefix }}" \
--prerelease-prefix="${{ inputs.prerelease-prefix }}" \
--prerelease-suffix="${{ inputs.prerelease-suffix }}" \
--prerelease-timestamped="${{ inputs.prerelease-timestamped }}" \
${{ format('--dir="{0}"', inputs.dir) }} \
${{ format('--fallback="{0}"', inputs.fallback) }} \
${{ format('--drop-prefix="{0}"', inputs.drop-prefix) }} \
${{ format('--prerelease-prefix="{0}"', inputs.prerelease-prefix) }} \
${{ format('--prerelease-suffix="{0}"', inputs.prerelease-suffix) }} \
${{ format('--prerelease-timestamped="{0}"', inputs.prerelease-timestamped) }} \
${{ inputs.next-release != '' && format('--next-release="{0}"', inputs.next-release) || '' }} \
--format="version=<version>" \
$GITHUB_OUTPUT
shell: bash
Expand Down

0 comments on commit 13a627a

Please sign in to comment.