Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.

Latest commit

 

History

History
36 lines (22 loc) · 633 Bytes

File metadata and controls

36 lines (22 loc) · 633 Bytes

Get semver from tag action

Gets semver string from a specified tag.

tests

Inputs

tag

Required The tag value.

allowNoTag

Default: false When set to true while run on branches and invalid semver tags, will return a default version of 0.0.0

Outputs

prefixed

The semver string with a 'v' prefix.

non-prefixed

The semver string with no 'v' prefix.

Example usage

name: Get version
id: semver
uses: LykkeBusiness/get-semver-from-tag-action@v1.0.2
with:
    tag: ${{ github.ref }}