From e764702aae0027fb6a2db3890331db5c6f6c189d Mon Sep 17 00:00:00 2001 From: Valery Yatsynovich Date: Sat, 30 May 2020 17:24:00 +0300 Subject: [PATCH] [GithubActions] Simplify checkout action Checkout action introduced number of improvements simplifying checkout of submodules and fetch of all history for all tags and branches: - https://github.com/actions/checkout/pull/258 - https://github.com/actions/checkout/pull/173 --- .github/workflows/gradle.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) 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