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 dc35e09 commit 3f7a5d9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .circleci/continue_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,13 @@ jobs:
# - checkout
- run:
name: Clone GitHub repository
shell: powershell.exe
command: |
$TAG = << pipeline.git.tag >>
$BRANCH = << pipeline.git.branch >>
$BRANCH = if ($TAG -ne $null) { $TAG } else { $BRANCH }
# bash
$TAG=<< pipeline.git.tag >>
$BRANCH=<< pipeline.git.branch >>
if [ -n "$TAG" ]; then
$BRANCH=$TAG
fi
git clone << pipeline.project.git_url >> --branch $BRANCH .
- run:
name: "Build Plugins & Run Tests"
Expand Down

0 comments on commit 3f7a5d9

Please sign in to comment.