mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-23 14:41:31 +02:00
Merge pull request #198 from flatcar-linux/kai/submodule-update-allow-push
ci-automation: allow to optionally push and sign the commit
This commit is contained in:
commit
41f6ea4020
@ -61,7 +61,16 @@ function update_and_push_version() {
|
|||||||
|
|
||||||
git commit --allow-empty -m "New version: ${version}"
|
git commit --allow-empty -m "New version: ${version}"
|
||||||
|
|
||||||
git tag -f "${version}"
|
local -a TAG_ARGS
|
||||||
|
if [ "${SIGN-0}" = 1 ]; then
|
||||||
|
TAG_ARGS=("-s" "-m" "${version}")
|
||||||
|
fi
|
||||||
|
|
||||||
|
git tag -f "${TAG_ARGS[@]}" "${version}"
|
||||||
|
|
||||||
|
if [ "${PUSH-0}" = 1 ]; then
|
||||||
|
git push
|
||||||
|
fi
|
||||||
|
|
||||||
if git push origin "${version}" ; then
|
if git push origin "${version}" ; then
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user