From 7151b338e43c69d3f4c3f79754d4ae8d91387bde Mon Sep 17 00:00:00 2001 From: Jonathan Ho Date: Sat, 8 Apr 2023 07:31:35 -0700 Subject: [PATCH] ci(bench): fix benchmark result not saved for pr (#2981) --- .github/workflows/benchmark.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index b1fdcc2a7..19dd4d4cb 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -62,7 +62,9 @@ jobs: uses: actions/cache@v3 with: path: ./benchmarksResult - key: ${{ github.ref }}-benchmark + key: ${{ github.ref }}-benchmark-${{ github.sha }} + restore-keys: | + ${{ github.ref }}-benchmark- - name: Store benchmark result to cache if: ${{ steps.cpuCheck.outputs.match == 'true' }} uses: benchmark-action/github-action-benchmark@v1