From 585ba75ed6379727a699a72a15319104b2da6485 Mon Sep 17 00:00:00 2001 From: Gabriel Grubba Date: Thu, 14 Nov 2024 09:50:10 -0300 Subject: [PATCH] DEV: add git clone to commands sequence --- .circleci/config.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index d37bfcbba2..81b771533e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -765,8 +765,10 @@ jobs: if [[ -n "$CIRCLE_PULL_REQUEST" ]]; then PR_NUMBER=$(echo $CIRCLE_PULL_REQUEST | sed 's|.*/pull/\([0-9]*\)|\1|') PR_BRANCH=$(curl -s https://api.github.com/repos/meteor/meteor/pulls/$PR_NUMBER | jq -r .head.ref) + git clone https://github.com/meteor/meteor.git git fetch origin pull/$PR_NUMBER/head:$PR_BRANCH else + git clone https://github.com/meteor/meteor.git git fetch origin pull/$CIRCLE_PR_NUMBER/head:pr-$CIRCLE_PR_NUMBER fi # Run almost the same steps the meteor/docs repository runs, minus deploy.