From 5e8c558e88e625e2e48219d32899275d6b45f9a9 Mon Sep 17 00:00:00 2001 From: Tom Parker-Shemilt Date: Wed, 24 Apr 2024 21:18:55 +0100 Subject: [PATCH] Make key unique per run attempt --- .github/workflows/rust.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 9803162..21f8dec 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -24,8 +24,9 @@ jobs: uses: actions/cache/restore@v4 with: path: results/*.yaml - key: results-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('README.md') }}-${{ github.run_id }} + key: results-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('README.md') }}-${{ github.run_id }}-${{ github.run_attempt }} restore-keys: | + results-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('README.md') }}-${{ github.run_id }}- results-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('README.md') }}- results-${{ hashFiles('Cargo.lock') }}- results- @@ -44,6 +45,6 @@ jobs: if: always() && (github.ref == 'refs/heads/main' || github.ref == 'refs/pull/1716/merge') with: path: results/*.yaml - key: results-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('README.md') }}-${{ github.run_id }} + key: results-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('README.md') }}-${{ github.run_id }}-${{ github.run_attempt }}