mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-23 14:41:31 +02:00
fix(master_release): Use tag names in commit message when available
This commit is contained in:
parent
215a558a20
commit
84f2909531
@ -23,10 +23,11 @@ repo init -b "${FLAGS_master}"
|
||||
|
||||
info "Updating version.txt from ${FLAGS_branch}"
|
||||
cd "${GCLIENT_ROOT}/.repo/manifests"
|
||||
git fetch --all
|
||||
git fetch --all --tags
|
||||
git checkout "${FLAGS_branch}" version.txt
|
||||
git add version.txt
|
||||
git commit -m "bump(version): Update version from ${FLAGS_branch}"
|
||||
tag=$(git describe --exact --tags "${FLAGS_branch}" 2>/dev/null || true)
|
||||
git commit -m "bump(version): Update version from ${tag:-$FLAGS_branch}"
|
||||
|
||||
if [[ ${FLAGS_push} -eq ${FLAGS_TRUE} ]]; then
|
||||
info "Pushing to ${FLAGS_remote} ${FLAGS_master}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user