From e3b95496118ad0199adb765239526ec22455dc4c Mon Sep 17 00:00:00 2001 From: Sebastiaan Zeeff Date: Tue, 17 Nov 2020 14:46:57 +0100 Subject: Use more effective caching keys for build cache --- .github/workflows/lint-test.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint-test.yaml b/.github/workflows/lint-test.yaml index 9dc711c..150352a 100644 --- a/.github/workflows/lint-test.yaml +++ b/.github/workflows/lint-test.yaml @@ -35,8 +35,9 @@ jobs: uses: actions/cache@v2 with: path: /tmp/.base-buildx-cache - key: ${{ runner.os }}-buildx-base-${{ github.sha }} + key: ${{ runner.os }}-buildx-base-${{ github.ref }}-${{ github.sha }} restore-keys: | + ${{ runner.os }}-buildx-base-${{ github.ref }}- ${{ runner.os }}-buildx-base- - name: Build base image -- cgit v1.2.3