Skip to content

Commit 44d22a6

Browse files
committed
chore: restore the clone step in release.sh (#5128)
1 parent 8e648a6 commit 44d22a6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

hack/release.sh

+6
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ if [[ -z "$BRANCH" || -z "$TAG_NAME" ]]; then
2525
exit 1
2626
fi
2727

28+
# Checking out the repo's release branch
29+
clone_dir=$(mktemp -d)
30+
git clone "[email protected]:${REPO}.git" "$clone_dir"
31+
cd "$clone_dir"
32+
git checkout "$BRANCH"
33+
2834
echo "Preparing local git tags used by changelog generation."
2935
# tags with "-" are pre-releases, e.g. 1.0.0-rc.1
3036
if [[ "$TAG_NAME" =~ "-" ]]; then

0 commit comments

Comments
 (0)