From a3c63792577c578b9e5413da56f902021b93f70e Mon Sep 17 00:00:00 2001 From: Antoine Toulme Date: Wed, 11 Dec 2024 02:52:26 -0800 Subject: [PATCH] [chore] use github.sha over github.ref_head for merge queue group concurrency (#11843) #### Link to tracking issue Fixes #11841 --------- Co-authored-by: Pablo Baeyens Co-authored-by: Jade Guiton Co-authored-by: Pablo Baeyens --- .github/workflows/build-and-test-arm.yml | 2 +- .github/workflows/build-and-test-windows.yaml | 2 +- .github/workflows/build-and-test.yml | 2 +- .github/workflows/builder-integration-test.yaml | 2 +- .github/workflows/changelog.yml | 2 +- .github/workflows/check-links.yaml | 2 +- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/contrib-tests.yml | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-and-test-arm.yml b/.github/workflows/build-and-test-arm.yml index 88f0ab949a6..2e835bd5446 100644 --- a/.github/workflows/build-and-test-arm.yml +++ b/.github/workflows/build-and-test-arm.yml @@ -18,7 +18,7 @@ permissions: # Do not cancel this workflow on main. See https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/16616 concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + group: ${{ github.workflow }}-${{ github.ref_name }} cancel-in-progress: true jobs: diff --git a/.github/workflows/build-and-test-windows.yaml b/.github/workflows/build-and-test-windows.yaml index 9c70e93e65e..0fda5e4603f 100644 --- a/.github/workflows/build-and-test-windows.yaml +++ b/.github/workflows/build-and-test-windows.yaml @@ -9,7 +9,7 @@ on: pull_request: concurrency: - group: ${{ github.workflow }}-${{ github.head_ref }} + group: ${{ github.workflow }}-${{ github.ref_name }} cancel-in-progress: true permissions: diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 12dc3b1d67e..a0c429ed681 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -12,7 +12,7 @@ permissions: contents: read concurrency: - group: ${{ github.workflow }}-${{ github.head_ref }} + group: ${{ github.workflow }}-${{ github.ref_name }} cancel-in-progress: true jobs: diff --git a/.github/workflows/builder-integration-test.yaml b/.github/workflows/builder-integration-test.yaml index 3824743aba1..c8fd99b24c2 100644 --- a/.github/workflows/builder-integration-test.yaml +++ b/.github/workflows/builder-integration-test.yaml @@ -20,7 +20,7 @@ on: types: [checks_requested] concurrency: - group: ${{ github.workflow }}-${{ github.head_ref }} + group: ${{ github.workflow }}-${{ github.ref_name }} cancel-in-progress: true permissions: diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 64b949c41ef..e39d9e1b135 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -13,7 +13,7 @@ on: types: [checks_requested] concurrency: - group: ${{ github.workflow }}-${{ github.head_ref }} + group: ${{ github.workflow }}-${{ github.ref_name }} cancel-in-progress: true permissions: diff --git a/.github/workflows/check-links.yaml b/.github/workflows/check-links.yaml index fb95982d818..a2bd983187d 100644 --- a/.github/workflows/check-links.yaml +++ b/.github/workflows/check-links.yaml @@ -7,7 +7,7 @@ on: types: [checks_requested] concurrency: - group: ${{ github.workflow }}-${{ github.head_ref }} + group: ${{ github.workflow }}-${{ github.ref_name }} cancel-in-progress: true permissions: diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 53ea273421b..ad69b2c7715 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -5,7 +5,7 @@ on: pull_request: concurrency: - group: ${{ github.workflow }}-${{ github.head_ref }} + group: ${{ github.workflow }}-${{ github.ref_name }} cancel-in-progress: true permissions: diff --git a/.github/workflows/contrib-tests.yml b/.github/workflows/contrib-tests.yml index 90e8067df1e..65432540ea5 100644 --- a/.github/workflows/contrib-tests.yml +++ b/.github/workflows/contrib-tests.yml @@ -11,7 +11,7 @@ on: types: [checks_requested] concurrency: - group: ${{ github.workflow }}-${{ github.head_ref }} + group: ${{ github.workflow }}-${{ github.ref_name }} cancel-in-progress: true permissions: