From 85e4a1df01623e8081904de2e1c3423ab298e6dd Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Fri, 2 Nov 2018 23:29:57 +0100 Subject: [PATCH] build: circleci git config being updated too early (#13950) * Due to the fact that we try to run `git config --global` before CircleCI set up the global Git configuration, the publish task is still broken. This _should_ fix it. --- .circleci/config.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 871a54a7ec3..a193aa0f1a0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -215,16 +215,16 @@ jobs: name: Check whether this job should be skipped. command: '[[ -n ${CIRCLE_PR_NUMBER} ]] && circleci step halt || true' - # CircleCI has a config setting to enforce SSH for all github connections. - # This is not compatible with our mechanism of using a Personal Access Token - # to publish the build snapshots. In order to fix this, we unset the global option. - - run: git config --global --unset "url.ssh://git@github.com.insteadof" - - *checkout_code - *restore_cache - *yarn_install - *attach_release_output + # CircleCI has a config setting to enforce SSH for all github connections. + # This is not compatible with our mechanism of using a Personal Access Token + # to publish the build snapshots. In order to fix this, we unset the global option. + - run: git config --global --unset "url.ssh://git@github.com.insteadof" + - run: ./scripts/circleci/publish-snapshots.sh - *save_cache