mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-08 13:36:58 +02:00
ci-automation/sdk_bootstrap: Only push to main in nightlies
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
This commit is contained in:
parent
7cadae957a
commit
82da911c27
@ -85,10 +85,11 @@ function sdk_bootstrap() {
|
|||||||
cd -
|
cd -
|
||||||
|
|
||||||
# Create new tag in scripts repo w/ updated versionfile + submodules.
|
# Create new tag in scripts repo w/ updated versionfile + submodules.
|
||||||
# When on the 'main' branch then also push to the branch so the versionfile
|
# Also push the changes to the branch ONLY IF we're doing a nightly
|
||||||
# and git submodules stay up to date.
|
# build of the 'main' branch AND we're definitely ON the main branch.
|
||||||
local push_branch="false"
|
local push_branch="false"
|
||||||
if [ "$(git rev-parse --abbrev-ref HEAD)" = "main" ] ; then
|
if [[ "${version}" =~ ^main-[0-9.]+-nightly-[-0-9]+$ ]] \
|
||||||
|
&& [ "$(git rev-parse --abbrev-ref HEAD)" = "main" ] ; then
|
||||||
push_branch="true"
|
push_branch="true"
|
||||||
fi
|
fi
|
||||||
update_and_push_version "sdk-${git_vernum}" "${push_branch}"
|
update_and_push_version "sdk-${git_vernum}" "${push_branch}"
|
||||||
|
Loading…
Reference in New Issue
Block a user