liquidlogiclabs/Git Tag Validate Version
Validate and parse git tags into structured version information supporting multiple version formats (semver, simple, docker, calver, date-based)
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| tag | Specific tag to parse. If empty, uses most recent tag | no | "" |
| version-type | Version format type (auto, semver, simple, docker, calver, date-based, regex). Default: auto | no | auto |
| version-regex | Custom regex pattern used when version-type is "regex". Named groups (?<major>, ?<minor>, ?<patch>, ?<prerelease>, ?<build>) or positional groups (1=major, 2=minor, 3=patch, 4=prerelease, 5=build) are mapped to outputs. Named groups take priority. | no | "" |
| verbose | Enable verbose debug logging. Also enabled when ACTIONS_STEP_DEBUG=true. | no | false |
Outputs
| name | description |
|---|---|
| is-valid | Boolean indicating if version was successfully validated and parsed |
| version | Full version string (even if parsing failed) |
| format | Detected version format type (semver, simple, docker, calver, date-based, or empty if invalid) |
| major | Major version number (if available) |
| minor | Minor version number (if available) |
| patch | Patch version number (if available) |
| prerelease | Prerelease identifier (if available) |
| build | Build metadata (if available) |
| commit | Short commit SHA extracted from tag (if found in + or - format) |
| year | Year component (for calver and date-based formats only) |
| month | Month component (for calver and date-based formats only) |
| day | Day component (for calver and date-based formats only) |
| has-prerelease | Boolean indicating if semver version has prerelease identifier |
| has-build | Boolean indicating if semver version has build metadata |
| tag-exists | Whether the provided tag was found in the local repository (only set when tag input is provided) |