From f143aba9ea7e69a7faea3749a2f03bb89c62f458 Mon Sep 17 00:00:00 2001 From: Olivier ORAND Date: Wed, 3 Jan 2024 17:40:02 +0000 Subject: [PATCH] chore(github-action): create release- branches (fixup) fix git syntax --- create-release-branches.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/create-release-branches.bash b/create-release-branches.bash index d8c7fea3..637b5b0c 100755 --- a/create-release-branches.bash +++ b/create-release-branches.bash @@ -31,14 +31,14 @@ for ref in $(listK3sRepoBranches) ; do if [ "$FORCE_PUSH" = "true" ] ;then git branch -d "$BRANCH_NAME" fi - git co -b "$BRANCH_NAME" + git checkout -b "$BRANCH_NAME" sed -i.orig "s/tag: v.*/tag: v${v}.0/g" vendir.yml diff vendir.yml vendir.yml.orig rm vendir.yml.orig git add vendir.yml git commit -m "Initial branch creation for k8s version $v" git push --set-upstream origin "$BRANCH_NAME" $PUSH_OPTIONS - git co master + git checkout master done git branch