Skip to content

Commit

Permalink
chore: Update CircleCI pipeline to clone and checkout branch or tag
Browse files Browse the repository at this point in the history
  • Loading branch information
HaiyiMei committed Aug 5, 2024
1 parent 1ea3c85 commit aa9126b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .circleci/continue_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,17 @@ jobs:
- run:
name: Clone GitHub repository
command: |
git clone << pipeline.project.git_url >> --branch << pipeline.git.branch >> .
git clone << pipeline.project.git_url >>
git fetch --tags
$TAG = git tag -l --points-at HEAD
if ($TAG) {
Write-Host "Checking out tag: $TAG"
git checkout $TAG
} else {
$BRANCH = << pipeline.git.branch >>
Write-Host "Checking out branch: $BRANCH"
git checkout $BRANCH
}
- run:
name: "Build Plugins & Run Tests"
shell: powershell.exe
Expand Down

0 comments on commit aa9126b

Please sign in to comment.