Skip to content

Commit

Permalink
ci: Enable manual clone from forked PRs (#3080)
Browse files Browse the repository at this point in the history
  • Loading branch information
calvincestari authored Jun 16, 2023
1 parent 2c2daab commit 79fec42
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,14 @@ commands:
codegen_test_configurations_generate_and_test:
steps:
- run:
command: git clone -b "$CIRCLE_BRANCH" "$CIRCLE_REPOSITORY_URL"
command: |
if [[ ! -z "${CIRCLE_PR_REPONAME}" ]]; then
git clone "https://github.com/$CIRCLE_PR_USERNAME/$CIRCLE_PR_REPONAME.git" apollo-ios
cd apollo-ios
git checkout $CIRCLE_SHA1
else
git clone -b "$CIRCLE_BRANCH" "$CIRCLE_REPOSITORY_URL"
fi
name: Manually clone Apollo iOS repository
- run:
command: HOMEBREW_NO_AUTO_UPDATE=1 brew install xcbeautify
Expand Down

0 comments on commit 79fec42

Please sign in to comment.