Alter PEP440 handling to support both sem and cal

This commit is contained in:
Phil Jay
2023-04-27 08:31:46 +10:00
parent bb0e075f8b
commit f81c317cbd
5 changed files with 46 additions and 9 deletions

View File

@@ -11,6 +11,10 @@ inputs:
description: 'Versioning scheme - semver, or, calver (defaults to semver)'
required: false
default: 'semver'
pep440:
description: 'PEP440 compatibility mode - shifts the pre-release version information into build metadata instead'
required: false
default: false
increment:
description: |
Field to increment - major, minor, or, patch (defaults to patch)
@@ -69,4 +73,5 @@ runs:
env:
current_version: ${{ steps.version-lookup.outputs.CURRENT_VERSION }}
increment: ${{ inputs.increment }}
pep440: ${{ inputs.pep440 }}
scheme: ${{ inputs.scheme }}