fix(ci): use --add for multiple git insteadOf patterns

git config overwrites previous insteadOf value without --add flag.
Need both git@github.com: (SCP) and ssh://git@github.com/ patterns.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
CCS Admin 2026-02-15 18:23:44 +00:00
parent 47657ae8c2
commit 68145ceb7e

View file

@ -20,8 +20,8 @@ jobs:
GH_PAT: ${{ secrets.GH_PAT }} GH_PAT: ${{ secrets.GH_PAT }}
run: | run: |
git config --global url."https://x-access-token:${GH_PAT}@github.com/".insteadOf "git@github.com:" git config --global url."https://x-access-token:${GH_PAT}@github.com/".insteadOf "git@github.com:"
git config --global url."https://x-access-token:${GH_PAT}@github.com/".insteadOf "ssh://git@github.com/" git config --global --add url."https://x-access-token:${GH_PAT}@github.com/".insteadOf "ssh://git@github.com/"
git config --global --get-regexp 'url\..*\.insteadof' || true git config --global --get-regexp 'url\..*\.insteadof'
- uses: pnpm/action-setup@v4 - uses: pnpm/action-setup@v4