Skip to content

Commit

Permalink
chore: restore the clone step in release.sh (#5128)
Browse files Browse the repository at this point in the history
  • Loading branch information
chensun committed Feb 12, 2021
1 parent 8e648a6 commit 44d22a6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hack/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ if [[ -z "$BRANCH" || -z "$TAG_NAME" ]]; then
exit 1
fi

# Checking out the repo's release branch
clone_dir=$(mktemp -d)
git clone "git@github.com:${REPO}.git" "$clone_dir"
cd "$clone_dir"
git checkout "$BRANCH"

echo "Preparing local git tags used by changelog generation."
# tags with "-" are pre-releases, e.g. 1.0.0-rc.1
if [[ "$TAG_NAME" =~ "-" ]]; then
Expand Down

0 comments on commit 44d22a6

Please sign in to comment.