mirror of
https://github.com/actions/checkout.git
synced 2025-03-28 11:00:05 +01:00
SSH submodules
This commit is contained in:
parent
b8bc84b504
commit
dbdab78b54
1 changed files with 2 additions and 1 deletions
|
@ -180,7 +180,8 @@ jobs:
|
|||
- name: Checkout submodules
|
||||
shell: bash
|
||||
run: |
|
||||
git config --global url."https://github.com/".insteadOf "git@github.com:"
|
||||
# If your submodules are configured to use SSH instead of HTTPS please uncomment the following line
|
||||
# git config --global url."https://github.com/".insteadOf "git@github.com:"
|
||||
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
|
||||
git submodule sync --recursive
|
||||
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
|
||||
|
|
Loading…
Add table
Reference in a new issue