diff --git a/.github/workflows/main-benchmark.yml b/.github/workflows/main-benchmark.yml index c9d8a4ff..e7d31ef9 100644 --- a/.github/workflows/main-benchmark.yml +++ b/.github/workflows/main-benchmark.yml @@ -44,7 +44,9 @@ jobs: uses: actions/cache/restore@v4 with: path: ./cache - key: ${{ runner.os }}-benchmark + key: ${{ runner.os }}-benchmark-${{ github.run_id }} + restore-keys: | + ${{ runner.os }}-benchmark- # Run `github-action-benchmark` action - name: Store benchmark result uses: benchmark-action/github-action-benchmark@v1 @@ -61,4 +63,4 @@ jobs: uses: actions/cache/save@v4 with: path: ./cache - key: ${{ runner.os }}-benchmark \ No newline at end of file + key: ${{ runner.os }}-benchmark-${{ github.run_id }} \ No newline at end of file diff --git a/.github/workflows/pr-test-lint.yml b/.github/workflows/pr-test-lint.yml index 1b40fa2c..bbf064c4 100644 --- a/.github/workflows/pr-test-lint.yml +++ b/.github/workflows/pr-test-lint.yml @@ -153,7 +153,9 @@ jobs: uses: actions/cache/restore@v4 with: path: ./cache - key: ${{ runner.os }}-benchmark + key: ${{ runner.os }}-benchmark-${{ github.run_id }} + restore-keys: | + ${{ runner.os }}-benchmark- # Run `github-action-benchmark` action - name: Store benchmark result uses: benchmark-action/github-action-benchmark@v1