Added incrementMode option.
This commit is contained in:
@@ -4,6 +4,10 @@ inputs:
|
||||
version:
|
||||
description: "The version to increment."
|
||||
required: false
|
||||
incrementMode:
|
||||
description: "The mode to increment by. Options: 'major', 'minor', 'patch', 'revision'"
|
||||
required: false
|
||||
default: revision
|
||||
outputs:
|
||||
nextVersion:
|
||||
description: "The next version of the package, based on the current branch and merge target."
|
||||
@@ -53,7 +57,7 @@ runs:
|
||||
id: increment
|
||||
uses: act/common/utils/version-increment@master
|
||||
with:
|
||||
incrementMode: revision
|
||||
incrementMode: ${{ inputs.incrementMode }}
|
||||
major: ${{ steps.parseNext.outputs.major }}
|
||||
minor: ${{ steps.parseNext.outputs.minor }}
|
||||
patch: ${{ steps.parseNext.outputs.patch }}
|
||||
|
||||
Reference in New Issue
Block a user