From b83a2a34a4cb303b5b4936a325d93e1c63f5d214 Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Fri, 23 Aug 2024 11:13:03 +0800 Subject: [PATCH] DEV: Update `app-cache` cache key for tests workflow (#28508) We cannot just key on `runner.os` the number of CPU cores matter as well. Therefore, we need to key on `runner.name` instead since each runner has its own unique OS and CPU cores. Technically, two different runner with different names can have the same `os` and `cpu cores` but we don't have that problem now. --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 748b5715f5c..1ca1dd1cd88 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -163,7 +163,7 @@ jobs: with: path: tmp/app-cache key: >- - ${{ runner.os }}- + ${{ runner.name }}- ${{ hashFiles('.github/workflows/tests.yml') }}- ${{ hashFiles('db/**/*', 'plugins/**/db/**/*') }}- ${{ hashFiles('config/environments/test.rb') }}-