From: Christian Femers Date: Tue, 11 Feb 2020 01:25:29 +0000 (+0100) Subject: GH-Actions clone submodules X-Git-Url: https://mograsim.net/gitweb/?p=Mograsim.git;a=commitdiff_plain;h=f9f8b605a8fb9e124d125fdc1a94f64b0aaf75f2 GH-Actions clone submodules --- diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 0eee55b4..d9ea203b 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -9,6 +9,12 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Checkout submodules # See https://github.com/actions/checkout#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 - name: Set up JDK 11 uses: actions/setup-java@v1 with: