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
Links
- Source Code
- Author: sink
blog comments powered by Disqus