diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index a5d572d..09875b1 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -23,3 +23,8 @@ jobs: uses: golangci/golangci-lint-action@v3 with: version: v1.53.3 + - name: Restore git global config + if: always() + run: | + MATCH=$(grep -o 'git@.*github\.com:' ~/.gitconfig) + git config --global --remove-section url.${MATCH} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 957c16c..7c4c06a 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}