From 118f7b97d92fe77e98aaa3ace56d2085cea1069c Mon Sep 17 00:00:00 2001 From: g11tech Date: Wed, 24 May 2023 22:16:40 +0530 Subject: [PATCH] fix: ensure benchmark workflow is not cancelled on stable/unstable consecutive pushes (#5535) --- .github/workflows/benchmark.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 8547dad7dcc3..4cc0b0e9e2a0 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -3,8 +3,8 @@ name: Benchmark # Actions access a common cache entry and may corrupt it. concurrency: # If PR, cancel prev commits. head_ref = source branch name on pull_request, null if push - # if push, default to github.ref so retries of the same commit do not overwrite each other - group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + # if push, default to github.run_id so retries of the same commit do not overwrite each other + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} cancel-in-progress: true on: