From 70527c4bbcbffa9e82983deb0d312f54cfe92568 Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Thu, 19 Jan 2023 11:22:17 +0800 Subject: [PATCH] ci: align workflow concurrency (#2987) --- .github/workflows/changesets.yml | 2 +- .github/workflows/commitlint.yml | 2 +- .github/workflows/integration-test.yml | 2 +- .github/workflows/main.yml | 2 +- .github/workflows/master-codecov-report.yml | 2 +- .github/workflows/pen-tests.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/update-pr-metadata.yml | 2 +- .github/workflows/upload-annotations.yml | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/changesets.yml b/.github/workflows/changesets.yml index 8cc756c31..98f4f6ced 100644 --- a/.github/workflows/changesets.yml +++ b/.github/workflows/changesets.yml @@ -15,7 +15,7 @@ on: pull_request: concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} jobs: changesets: diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index 7ab73c0a9..9331e159d 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -8,7 +8,7 @@ on: types: [opened, edited, synchronize, reopened] concurrency: - group: commitlint-${{ github.ref }} + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} cancel-in-progress: true jobs: diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 806580597..0acfa2fa4 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -8,7 +8,7 @@ on: pull_request: concurrency: - group: integration-test-${{ github.head_ref || github.run_id }} + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} cancel-in-progress: true jobs: diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b34736bbd..e6d39e8d8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,7 +8,7 @@ on: pull_request: concurrency: - group: main-${{ github.head_ref || github.run_id }} + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} cancel-in-progress: true jobs: diff --git a/.github/workflows/master-codecov-report.yml b/.github/workflows/master-codecov-report.yml index 974fc275e..12570907d 100644 --- a/.github/workflows/master-codecov-report.yml +++ b/.github/workflows/master-codecov-report.yml @@ -4,7 +4,7 @@ on: push: branches: [master] -concurrency: master-codecov-report +concurrency: ${{ github.workflow }} jobs: report-coverage: diff --git a/.github/workflows/pen-tests.yml b/.github/workflows/pen-tests.yml index e4ff14049..23a719bc4 100644 --- a/.github/workflows/pen-tests.yml +++ b/.github/workflows/pen-tests.yml @@ -11,7 +11,7 @@ on: - completed concurrency: - group: main-${{ github.head_ref || github.run_id }} + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} cancel-in-progress: true jobs: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a3c92b272..c79e7831d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,7 @@ on: - v*.*.* concurrency: - group: dockerize-${{ github.ref }} + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} jobs: dockerize: diff --git a/.github/workflows/update-pr-metadata.yml b/.github/workflows/update-pr-metadata.yml index 3d5eb9961..6d28681ec 100644 --- a/.github/workflows/update-pr-metadata.yml +++ b/.github/workflows/update-pr-metadata.yml @@ -6,7 +6,7 @@ on: types: [opened, edited, synchronize, reopened] concurrency: - group: update-metadata-${{ github.ref }} + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} cancel-in-progress: true jobs: diff --git a/.github/workflows/upload-annotations.yml b/.github/workflows/upload-annotations.yml index 1b2eb2ab3..05109f721 100644 --- a/.github/workflows/upload-annotations.yml +++ b/.github/workflows/upload-annotations.yml @@ -7,7 +7,7 @@ on: branches: [master] concurrency: - group: upload-annotations-${{ github.head_ref || github.run_id }} + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} cancel-in-progress: true jobs: