From 1f28b21bcb73822c66843f8fedb3544eb81e2766 Mon Sep 17 00:00:00 2001 From: Pavel Sorokin <60606414+pavel-snyk@users.noreply.github.com> Date: Sat, 8 Aug 2020 16:24:12 +0200 Subject: [PATCH] chore: cache gradle wrapper directory updating action/cache to v2 allows to cache multiple paths --- .github/workflows/build.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8646355..c25505d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,9 +51,11 @@ jobs: # Cache Gradle dependencies - name: Setup Cache - uses: actions/cache@v1 + uses: actions/cache@v2 with: - path: ~/.gradle/caches + path: | + ~/.gradle/caches + ~/.gradle/wrapper key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} restore-keys: ${{ runner.os }}-gradle- @@ -94,9 +96,11 @@ jobs: # Cache Gradle dependencies - name: Setup Cache - uses: actions/cache@v1 + uses: actions/cache@v2 with: - path: ~/.gradle/caches + path: | + ~/.gradle/caches + ~/.gradle/wrapper key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} restore-keys: ${{ runner.os }}-gradle-