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 2dfb841
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: .
Expand All @@ -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: .
Expand Down
4 changes: 4 additions & 0 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 Down Expand Up @@ -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=<version>" \
$GITHUB_OUTPUT
shell: bash
Expand Down

0 comments on commit 2dfb841

Please sign in to comment.