diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index e29ac679c4..51a800092c 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -20,16 +20,11 @@ jobs: runs-on: ${{ matrix.platform }} steps: - - uses: actions/checkout@v2 - name: Checkout (including submodules and tags) - shell: bash - # Fetch all history for all tags and branches: https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches - # Checkout submodules: https://github.com/actions/checkout#checkout-submodules - run: | - git fetch --prune --unshallow - 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 + uses: actions/checkout@v2 + with: + submodules: recursive + fetch-depth: 0 - name: Cache ~/.gradle/caches uses: actions/cache@v1