You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adjust release scripts to work with scripts as monorepo
The change prepared in flatcar/scripts#699
means that we don't use the coreos-overlay/portage-stable repos
anymore.
Skip these repositories and the submodule handling, too. Leave existing
logic there to support doing releases the old way (at least for the
nearer future).
# Check if we have to update the submodules while tagging
55
-
if [ "${REPO}"="scripts" ]&& git show "origin/$MAINT-$MAJOR":sdk_container/src > /dev/null 2>/dev/null ;then
66
+
if [ "${REPO}"="scripts" ];then
56
67
if [ "${REF}"!="origin/$MAINT-$MAJOR" ];then
57
68
echo"Error: can't find the scripts branch to push the updated submodule to, you can't overwrite SCRIPTS_REF anymore"
58
69
exit 1
59
70
fi
60
-
echo"Checking out scripts branch $MAINT-$MAJOR to update submodules"
61
-
git checkout --recurse-submodules -B "$MAINT-$MAJOR""origin/$MAINT-$MAJOR"|| { echo"Error: could not checkout the right branch in your 'scripts' repo";exit 1 ; }
71
+
if [ "$(git status --porcelain)"!="" ];then
72
+
echo"Error: uncommitted changes found which will be lost"
73
+
exit 1
74
+
fi
75
+
echo"Checking out scripts branch $MAINT-$MAJOR to update submodules and create version file"
76
+
git checkout --force --recurse-submodules -B "$MAINT-$MAJOR""origin/$MAINT-$MAJOR"|| { echo"Error: could not checkout the right branch in your 'scripts' repo";exit 1 ; }
62
77
git pull --recurse-submodules || { echo"Error: could not pull the branch in your 'scripts' repo";exit 1 ; }
0 commit comments