From 6a11eb58385a1a607db42fba68ef4a5eee675181 Mon Sep 17 00:00:00 2001 From: Lovro Bikic Date: Thu, 13 Jan 2022 00:48:06 +0100 Subject: [PATCH] Add rubocop cache restore key by github.ref --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 499c06a..f9ea247 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -75,8 +75,9 @@ jobs: uses: actions/cache@v2 with: path: tmp/rubocop-cache - key: ${{ runner.os }}-rubocop-cache-${{ github.sha }} + key: ${{ runner.os }}-rubocop-cache-${{ github.ref }}-${{ github.sha }} restore-keys: | + ${{ runner.os }}-rubocop-cache-${{ github.ref }}- ${{ runner.os }}-rubocop-cache- - name: Set up Node uses: actions/setup-node@v2