Skip to content

Commit f18033e

Browse files
committed
fix: create beta release branches with valid git syntax
Change-Id: I6c3f97bcd9a143b314c3205675ee12f671b8254e
1 parent fd1cf3b commit f18033e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/prepare-beta.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ jobs:
4646
git fetch origin main
4747
if git ls-remote --exit-code --heads origin "${branch}" >/dev/null 2>&1; then
4848
git fetch origin "${branch}"
49-
git checkout --branch "${branch}" --track "origin/${branch}"
49+
git checkout -b "${branch}" --track "origin/${branch}"
5050
git merge --no-edit origin/main
5151
else
52-
git checkout --branch "${branch}" origin/main
52+
git checkout -b "${branch}" origin/main
5353
bunx changeset pre enter beta
5454
fi
5555

0 commit comments

Comments
 (0)