Skip to content

Commit 72168dc

Browse files
committed
scripts: fetch branch before checkout in release script
actions/checkout does a sparse clone by default so the branch may not be yet available.
1 parent 8d376e8 commit 72168dc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/release.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ GROUP_END
6262
set -x
6363

6464
GROUP_START "Checkout branch"
65+
git fetch origin "$branch"
6566
git checkout "$branch"
6667
git pull --rebase
6768
GROUP_END

0 commit comments

Comments
 (0)