diff --git a/.github/workflows/PR-wip-checks.yaml b/.github/workflows/PR-wip-checks.yaml index 97c35145a7..98195b8867 100644 --- a/.github/workflows/PR-wip-checks.yaml +++ b/.github/workflows/PR-wip-checks.yaml @@ -9,6 +9,10 @@ on: - labeled - unlabeled +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: pr_wip_check: runs-on: ubuntu-latest diff --git a/.github/workflows/add-backport-label.yaml b/.github/workflows/add-backport-label.yaml index 3df518b54f..790ff1721f 100644 --- a/.github/workflows/add-backport-label.yaml +++ b/.github/workflows/add-backport-label.yaml @@ -10,6 +10,10 @@ on: - labeled - unlabeled +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: check-issues: if: ${{ github.event.label.name != 'auto-backport' }} diff --git a/.github/workflows/add-issues-to-project.yaml b/.github/workflows/add-issues-to-project.yaml index 93c31e7a1f..117e626009 100644 --- a/.github/workflows/add-issues-to-project.yaml +++ b/.github/workflows/add-issues-to-project.yaml @@ -11,6 +11,10 @@ on: - opened - reopened +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: add-new-issues-to-backlog: runs-on: ubuntu-latest diff --git a/.github/workflows/add-pr-sizing-label.yaml b/.github/workflows/add-pr-sizing-label.yaml index ffd9b06a96..313c9f2858 100644 --- a/.github/workflows/add-pr-sizing-label.yaml +++ b/.github/workflows/add-pr-sizing-label.yaml @@ -12,6 +12,10 @@ on: - reopened - synchronize +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: add-pr-size-label: runs-on: ubuntu-latest diff --git a/.github/workflows/auto-backport.yaml b/.github/workflows/auto-backport.yaml index 6504dc4883..e2be390227 100644 --- a/.github/workflows/auto-backport.yaml +++ b/.github/workflows/auto-backport.yaml @@ -2,6 +2,10 @@ on: pull_request_target: types: ["labeled", "closed"] +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: backport: name: Backport PR diff --git a/.github/workflows/cargo-deny-runner.yaml b/.github/workflows/cargo-deny-runner.yaml index 65237c7be9..21d3d1f53e 100644 --- a/.github/workflows/cargo-deny-runner.yaml +++ b/.github/workflows/cargo-deny-runner.yaml @@ -7,6 +7,11 @@ on: - reopened - synchronize paths-ignore: [ '**.md', '**.png', '**.jpg', '**.jpeg', '**.svg', '/docs/**' ] + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: cargo-deny-runner: runs-on: ubuntu-latest diff --git a/.github/workflows/ci-nightly.yaml b/.github/workflows/ci-nightly.yaml index 9948bc9103..d085c3f446 100644 --- a/.github/workflows/ci-nightly.yaml +++ b/.github/workflows/ci-nightly.yaml @@ -3,6 +3,10 @@ on: schedule: - cron: '0 0 * * *' +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: kata-containers-ci-on-push: uses: ./.github/workflows/ci.yaml diff --git a/.github/workflows/ci-on-push.yaml b/.github/workflows/ci-on-push.yaml index 6d4cc7fc05..99d4837209 100644 --- a/.github/workflows/ci-on-push.yaml +++ b/.github/workflows/ci-on-push.yaml @@ -14,6 +14,11 @@ on: - labeled paths-ignore: - 'docs/**' + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: kata-containers-ci-on-push: if: ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') }} diff --git a/.github/workflows/commit-message-check.yaml b/.github/workflows/commit-message-check.yaml index 3cde335bdd..b54c0a7e40 100644 --- a/.github/workflows/commit-message-check.yaml +++ b/.github/workflows/commit-message-check.yaml @@ -6,6 +6,10 @@ on: - reopened - synchronize +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + env: error_msg: |+ See the document below for help on formatting commits for the project. diff --git a/.github/workflows/darwin-tests.yaml b/.github/workflows/darwin-tests.yaml index bf8813776c..02bbb0e721 100644 --- a/.github/workflows/darwin-tests.yaml +++ b/.github/workflows/darwin-tests.yaml @@ -6,6 +6,11 @@ on: - reopened - synchronize paths-ignore: [ '**.md', '**.png', '**.jpg', '**.jpeg', '**.svg', '/docs/**' ] + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + name: Darwin tests jobs: test: diff --git a/.github/workflows/payload-after-push.yaml b/.github/workflows/payload-after-push.yaml index 871d73388e..46766c54b3 100644 --- a/.github/workflows/payload-after-push.yaml +++ b/.github/workflows/payload-after-push.yaml @@ -5,6 +5,10 @@ on: - main - stable-* +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: build-assets-amd64: uses: ./.github/workflows/build-kata-static-tarball-amd64.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a50313fd08..e06ed61b58 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -4,6 +4,10 @@ on: tags: - '[0-9]+.[0-9]+.[0-9]+*' +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: build-and-push-assets-amd64: uses: ./.github/workflows/release-amd64.yaml diff --git a/.github/workflows/require-pr-porting-labels.yaml b/.github/workflows/require-pr-porting-labels.yaml index 585e86bc42..b16e5c371b 100644 --- a/.github/workflows/require-pr-porting-labels.yaml +++ b/.github/workflows/require-pr-porting-labels.yaml @@ -15,6 +15,10 @@ on: branches: - main +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: check-pr-porting-labels: runs-on: ubuntu-latest diff --git a/.github/workflows/static-checks-dragonball.yaml b/.github/workflows/static-checks-dragonball.yaml index 61e3fe2c49..3906cd4d6f 100644 --- a/.github/workflows/static-checks-dragonball.yaml +++ b/.github/workflows/static-checks-dragonball.yaml @@ -7,6 +7,10 @@ on: - synchronize paths-ignore: [ '**.md', '**.png', '**.jpg', '**.jpeg', '**.svg', '/docs/**' ] +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + name: Static checks dragonball jobs: test-dragonball: diff --git a/.github/workflows/static-checks.yaml b/.github/workflows/static-checks.yaml index 9060814535..23f11aab3e 100644 --- a/.github/workflows/static-checks.yaml +++ b/.github/workflows/static-checks.yaml @@ -6,6 +6,10 @@ on: - reopened - synchronize +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + name: Static checks jobs: static-checks: