ci: checkout@v2 supports submodules again

pull/6578/head
Niklas Fiekas 2020-05-08 17:52:56 +02:00
parent 3537c606f9
commit 1149adc32e
1 changed files with 3 additions and 7 deletions

View File

@ -21,13 +21,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout submodules
shell: bash
run: |
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
git submodule absorbgitdirs
with:
submodules: recursive
- run: git submodule absorbgitdirs
- run: |
mkdir -p ~/.ssh
echo "${{ secrets.id_rsa_ab }}" > ~/.ssh/id_rsa