diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 957c16c2..7c4c06a9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -44,3 +44,8 @@ jobs: ssh-private-key: ${{ secrets.BOT_PRIVATE_KEY }} - run: ./hack/setup-git-redirect.sh - run: make test + - name: Restore git global config + if: always() + run: | + MATCH=$(grep -o 'git@.*github\.com:' ~/.gitconfig) + git config --global --remove-section url.${MATCH}