Skip to content

Commit

Permalink
chore: Update CircleCI pipeline to clone and checkout branch or tag u…
Browse files Browse the repository at this point in the history
…sing bash
  • Loading branch information
HaiyiMei committed Aug 5, 2024
1 parent 6623d81 commit 14d0656
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .circleci/continue_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ jobs:
command: |
TAG="<< pipeline.git.tag >>"
BRANCH="<< pipeline.git.branch >>"
if [ -n "$TAG" ]; then
# If the branch is empty, use the tag as the branch
if [ -z "$BRANCH" ] || [ "$BRANCH" = " " ]; then
BRANCH=$TAG
fi
echo "Cloning $BRANCH branch"
Expand Down

0 comments on commit 14d0656

Please sign in to comment.