diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index bce6e9d38..8eb0f31e9 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -24,8 +24,8 @@ on: workflow_dispatch: concurrency: - group: ci-backends-${{ github.head_ref || github.ref }}-${{ github.repository }} - cancel-in-progress: true + group: ci-backends-${{ github.event.pull_request.number || github.sha }}-${{ github.repository }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: generate-matrix: diff --git a/.github/workflows/backend_pr.yml b/.github/workflows/backend_pr.yml index 85bb0a16b..863610c87 100644 --- a/.github/workflows/backend_pr.yml +++ b/.github/workflows/backend_pr.yml @@ -4,8 +4,8 @@ on: pull_request: concurrency: - group: ci-backends-pr-${{ github.head_ref || github.ref }}-${{ github.repository }} - cancel-in-progress: true + group: ci-backends-pr-${{ github.event.pull_request.number || github.sha }}-${{ github.repository }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: generate-matrix: diff --git a/.github/workflows/generate_intel_image.yaml b/.github/workflows/generate_intel_image.yaml index 051133c08..27f1a0a3e 100644 --- a/.github/workflows/generate_intel_image.yaml +++ b/.github/workflows/generate_intel_image.yaml @@ -7,8 +7,8 @@ on: - master concurrency: - group: intel-cache-${{ github.head_ref || github.ref }}-${{ github.repository }} - cancel-in-progress: true + group: intel-cache-${{ github.event.pull_request.number || github.sha }}-${{ github.repository }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: generate_caches: diff --git a/.github/workflows/image-pr.yml b/.github/workflows/image-pr.yml index 7066fc990..cfc7c47f4 100644 --- a/.github/workflows/image-pr.yml +++ b/.github/workflows/image-pr.yml @@ -5,8 +5,8 @@ pull_request: concurrency: - group: ci-${{ github.head_ref || github.ref }}-${{ github.repository }} - cancel-in-progress: true + group: ci-${{ github.event.pull_request.number || github.sha }}-${{ github.repository }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: image-build: diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml index 8dd176515..91e5c97f7 100644 --- a/.github/workflows/image.yml +++ b/.github/workflows/image.yml @@ -9,8 +9,8 @@ - '*' concurrency: - group: ci-${{ github.head_ref || github.ref }}-${{ github.repository }} - cancel-in-progress: true + group: ci-${{ github.event.pull_request.number || github.sha }}-${{ github.repository }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: hipblas-jobs: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a7e6ef50d..f9913229a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,8 +13,8 @@ on: - master concurrency: - group: ci-lint-${{ github.head_ref || github.ref }}-${{ github.repository }} - cancel-in-progress: true + group: ci-lint-${{ github.event.pull_request.number || github.sha }}-${{ github.repository }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: golangci-lint: diff --git a/.github/workflows/test-extra.yml b/.github/workflows/test-extra.yml index fc2cd2e35..6d840c919 100644 --- a/.github/workflows/test-extra.yml +++ b/.github/workflows/test-extra.yml @@ -10,8 +10,8 @@ on: - '*' concurrency: - group: ci-tests-extra-${{ github.head_ref || github.ref }}-${{ github.repository }} - cancel-in-progress: true + group: ci-tests-extra-${{ github.event.pull_request.number || github.sha }}-${{ github.repository }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: detect-changes: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 159007250..578a60255 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,8 +16,8 @@ on: - '*' concurrency: - group: ci-tests-${{ github.head_ref || github.ref }}-${{ github.repository }} - cancel-in-progress: true + group: ci-tests-${{ github.event.pull_request.number || github.sha }}-${{ github.repository }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: tests-linux: diff --git a/.github/workflows/tests-aio.yml b/.github/workflows/tests-aio.yml index 7c8579266..162389df5 100644 --- a/.github/workflows/tests-aio.yml +++ b/.github/workflows/tests-aio.yml @@ -22,8 +22,8 @@ on: - '*' concurrency: - group: ci-tests-aio-${{ github.head_ref || github.ref }}-${{ github.repository }} - cancel-in-progress: true + group: ci-tests-aio-${{ github.event.pull_request.number || github.sha }}-${{ github.repository }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: tests-aio: diff --git a/.github/workflows/tests-e2e.yml b/.github/workflows/tests-e2e.yml index d8a63563e..7b9435626 100644 --- a/.github/workflows/tests-e2e.yml +++ b/.github/workflows/tests-e2e.yml @@ -16,8 +16,8 @@ on: - '*' concurrency: - group: ci-tests-e2e-backend-${{ github.head_ref || github.ref }}-${{ github.repository }} - cancel-in-progress: true + group: ci-tests-e2e-backend-${{ github.event.pull_request.number || github.sha }}-${{ github.repository }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: tests-e2e-backend: diff --git a/.github/workflows/tests-ui-e2e.yml b/.github/workflows/tests-ui-e2e.yml index 5358c312a..5336eadee 100644 --- a/.github/workflows/tests-ui-e2e.yml +++ b/.github/workflows/tests-ui-e2e.yml @@ -12,8 +12,8 @@ on: - master concurrency: - group: ci-tests-ui-e2e-${{ github.head_ref || github.ref }}-${{ github.repository }} - cancel-in-progress: true + group: ci-tests-ui-e2e-${{ github.event.pull_request.number || github.sha }}-${{ github.repository }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: tests-ui-e2e: