mirror of
https://github.com/yavook/kiwi-scp.git
synced 2024-12-18 07:53:01 +00:00
version_str based on tag
This commit is contained in:
parent
52d54eddad
commit
2b0ec1cea2
1 changed files with 2 additions and 2 deletions
4
dist/bump-version.sh
vendored
4
dist/bump-version.sh
vendored
|
@ -3,9 +3,9 @@
|
|||
this="$(readlink -f "${0}")"
|
||||
this_dir="$(dirname "${this}")"
|
||||
|
||||
git_branch="$(git rev-parse --abbrev-ref HEAD)"
|
||||
# git_branch="$(git rev-parse --abbrev-ref HEAD)"
|
||||
git_tag="$(git describe --abbrev=0)"
|
||||
version_str="${git_branch##*/}"
|
||||
version_str="${git_tag##*/}"
|
||||
version_str="0.2.0"
|
||||
|
||||
sed -ri "s/(version\s*:).*$/\1 '${version_str}'/" "${this_dir}/../example/kiwi.yml"
|
||||
|
|
Loading…
Reference in a new issue