From 867c5d5a319dcde1f1373ac30ca066af6fe0c97e Mon Sep 17 00:00:00 2001 From: Ivan Milchev Date: Mon, 14 Oct 2024 11:06:50 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20fix=20benchmark=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ivan Milchev --- .github/workflows/main-benchmark.yml | 6 ++++-- .github/workflows/pr-test-lint.yml | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) 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