Add support for vMajor versions that are often used in GitHub Actions and Workflows.
Building off of the previously utilized variant field, creating new VariantKey typeversion_major that when used with the example semver value of 1.2.3 will have a version_major value of v1.
Example:
- kind: regexp
pattern: '(?<=org/my-cool-actions/.*@).*'
flags: g
variant: version_major
Changes after PR Review
Changed variant naming convention to format. Based on review comment
Updated FormatKind (previously VariantKey) fields to match naming convention. Based on review comment
Added new regexp optional parameter prefix to allow for user customized prefix values on generated versions. Based on review comment
- kind: regexp
pattern: '(?<=org/my-cool-actions/.*@).*'
flags: g
file: ./.github/README.md
format: major
prefix: v
Proposed changes
Add support forvMajor
versions that are often used in GitHub Actions and Workflows.Building off of the previously utilizedvariant
field, creating newVariantKey
typeversion_major
that when used with the example semver value of1.2.3
will have aversion_major
value ofv1
.Example:Changes after PR Review
variant
naming convention toformat
. Based on review commentFormatKind
(previouslyVariantKey
) fields to match naming convention. Based on review commentregexp
optional parameterprefix
to allow for user customized prefix values on generated versions. Based on review comment