From d12e21223160fb03db412c3060e897ffd3e836d5 Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Fri, 8 Mar 2024 16:14:54 -0500 Subject: [PATCH] actions/run-harness: refine cache key (#225) Signed-off-by: William Woodruff --- .github/actions/run-harnesses/action.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/actions/run-harnesses/action.yml b/.github/actions/run-harnesses/action.yml index 882fe640..a0abb5b4 100644 --- a/.github/actions/run-harnesses/action.yml +++ b/.github/actions/run-harnesses/action.yml @@ -19,10 +19,9 @@ runs: id: compute-cache-key shell: bash run: | - echo "HARNESS_CACHE_KEY=limbo-harness-${LIMBO_HASH}-${HARNESS_HASH}" >> "${GITHUB_OUTPUT}" + echo "HARNESS_CACHE_KEY=limbo-harness-${LIMBO_CACHE_KEY}" >> "${GITHUB_OUTPUT}" env: - LIMBO_HASH: ${{ hashFiles('limbo.json') }} - HARNESS_HASH: ${{ hashFiles('harness/**') }} + LIMBO_CACHE_KEY: ${{ hashFiles('Makefile', 'limbo.json', 'harness/**') }} - uses: actions/cache/restore@v4 id: restore-cache