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 powershell.exe
  • Loading branch information
HaiyiMei committed Aug 5, 2024
1 parent 8f59a69 commit 508d711
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .circleci/continue_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,12 @@ jobs:
command: |
TAG="<< pipeline.git.tag >>"
BRANCH="<< pipeline.git.branch >>"
declare -p TAG
declare -p BRANCH
# If the branch is empty, use the tag as the branch
if [ -z "$BRANCH" ] || [ "$BRANCH" = " " ]; then
BRANCH=$TAG
if [ -z "\$BRANCH" ]; then
BRANCH=\$TAG
fi
echo "Cloning $BRANCH branch"
git clone << pipeline.project.git_url >> --branch $BRANCH .
echo "Cloning \$BRANCH branch"
git clone << pipeline.project.git_url >> --branch \$BRANCH .
- run:
name: "Build Plugins & Run Tests"
shell: powershell.exe
Expand Down

0 comments on commit 508d711

Please sign in to comment.