From f4b5f511566a885d45c34641243c0637c352bf07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Pedro=20Sousa?= Date: Tue, 27 Feb 2024 15:47:39 +0000 Subject: [PATCH 1/2] chore(docs): passing nothing if pull request is unbounded --- .circleci/config.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 256aada24b3..07626833031 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1124,7 +1124,11 @@ jobs: build docs echo "Deploying docs" - docs/deploy_netlify.sh $CIRCLE_BRANCH $CIRCLE_PULL_REQUEST + if [ -n "$CIRCLE_PULL_REQUEST" ]; then + docs/deploy_netlify.sh "$CIRCLE_BRANCH" "$CIRCLE_PULL_REQUEST" + else + docs/deploy_netlify.sh "$CIRCLE_BRANCH" + fi yellow-paper: machine: From 55874047b7dae8e9f79fbb675bc0b1846b78f950 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Pedro=20Sousa?= Date: Tue, 27 Feb 2024 16:22:30 +0000 Subject: [PATCH 2/2] passing already sanitized env variables --- .circleci/config.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 07626833031..dc87d950ce7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1124,11 +1124,7 @@ jobs: build docs echo "Deploying docs" - if [ -n "$CIRCLE_PULL_REQUEST" ]; then - docs/deploy_netlify.sh "$CIRCLE_BRANCH" "$CIRCLE_PULL_REQUEST" - else - docs/deploy_netlify.sh "$CIRCLE_BRANCH" - fi + docs/deploy_netlify.sh $BRANCH $PULL_REQUEST yellow-paper: machine: