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 14d0656 commit e5a8417
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .circleci/continue_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,18 @@ jobs:
- when:
condition: << pipeline.parameters.build-unreal-plugin >> || << pipeline.parameters.run-unreal-test >>
steps:
# - checkout
- run:
name: Clone GitHub repository
command: |
TAG="<< pipeline.git.tag >>"
BRANCH="<< pipeline.git.branch >>"
# If the branch is empty, use the tag as the branch
if [ -z "$BRANCH" ] || [ "$BRANCH" = " " ]; then
BRANCH=$TAG
fi
echo "Cloning $BRANCH branch"
git clone << pipeline.project.git_url >> --branch $BRANCH .
- checkout
# - run:
# name: Clone GitHub repository
# command: |
# TAG="<< pipeline.git.tag >>"
# BRANCH="<< pipeline.git.branch >>"
# # If the branch is empty, use the tag as the branch
# if [ -z "$BRANCH" ] || [ "$BRANCH" = " " ]; then
# BRANCH=$TAG
# fi
# 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 e5a8417

Please sign in to comment.