🎉 Happy News! The new release is out :-) Get it NOW!

magic-version

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