magic-version

calculate version from CI env

calculate version for CI (CODING, GitHub Actions, Jenkins)

when version
tag 1.2.0
branch main-3a11e12
MR mr-123-3a11e12
PR(GitHub) pr-123-3a11e12
bpkg install [-g] sinkcup/magic-version

Usage

export TAG_NAME=1.2.0
magic-version

1.2.0

more examples in test code

Published: August 14 2021

blog comments powered by Disqus