diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index d543093..f318d5b 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -86,10 +86,15 @@ jobs: working-directory: ${{ matrix.repo }} run: | if [ -f .gitmodules ]; then - git config --local --add url."https://github.com/".insteadOf "git@github.com:" - git config --local --add url."https://github.com/".insteadOf "ssh://git@github.com/" - git submodule sync --recursive - git -c protocol.version=2 submodule update --init --force --depth=1 --recursive + git \ + -c url."https://github.com/".insteadOf=git@github.com: \ + -c url."https://github.com/".insteadOf=ssh://git@github.com/ \ + submodule sync --recursive + git \ + -c protocol.version=2 \ + -c url."https://github.com/".insteadOf=git@github.com: \ + -c url."https://github.com/".insteadOf=ssh://git@github.com/ \ + submodule update --init --force --depth=1 --recursive fi - name: Set yarn cache directory id: yarn-cache