From 6f430efdd6381f54498f66c24ed45b124127e926 Mon Sep 17 00:00:00 2001 From: Radek Novak Date: Thu, 15 Jun 2023 19:37:39 +0200 Subject: [PATCH] Use correct ref for cache key --- .github/actions/build/action.yml | 2 +- .github/workflows/ci.yml | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/actions/build/action.yml b/.github/actions/build/action.yml index caba3649b..bc1fb8562 100644 --- a/.github/actions/build/action.yml +++ b/.github/actions/build/action.yml @@ -34,4 +34,4 @@ runs: with: path: | products.tar - key: ${{ runner.os }}-deriveddata-${{ github.ref }}-${{ github.sha }} \ No newline at end of file + key: ${{ runner.os }}-deriveddata-${{ github.event.pull_request.head.sha }} \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7acd8274b..d16a2095c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,9 +50,7 @@ jobs: with: path: | products.tar - key: ${{ runner.os }}-deriveddata-${{ github.ref }}-${{ github.sha }} - restore-keys: | - ${{ runner.os }}-deriveddata-${{ github.ref }}- + key: ${{ runner.os }}-deriveddata-${{ github.event.pull_request.head.sha }} - name: Untar DerivedDataCache shell: bash