diff --git a/.github/workflows/build-and-push-release.yml b/.github/workflows/build-and-push-release.yml index 519dd7f40..fc08c15a0 100644 --- a/.github/workflows/build-and-push-release.yml +++ b/.github/workflows/build-and-push-release.yml @@ -3,6 +3,9 @@ name: Build and Publish on: push: branches: [main] +concurrency: + group: ${{ github.head_ref || github.run_id }} + cancel-in-progress: true jobs: build-and-push-container-images: name: Build Container images and push to repositories diff --git a/.github/workflows/build-and-push-tags.yml b/.github/workflows/build-and-push-tags.yml index 886a8e343..1b3146c1b 100644 --- a/.github/workflows/build-and-push-tags.yml +++ b/.github/workflows/build-and-push-tags.yml @@ -9,6 +9,9 @@ on: types: - published +concurrency: + group: ${{ github.head_ref || github.run_id }} + cancel-in-progress: true jobs: build-and-push-container-images: diff --git a/.github/workflows/ci-test-ansible.yml b/.github/workflows/ci-test-ansible.yml index dd9eefa19..8ab049e07 100644 --- a/.github/workflows/ci-test-ansible.yml +++ b/.github/workflows/ci-test-ansible.yml @@ -16,6 +16,10 @@ on: required: false type: string +concurrency: + group: ${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: ansible-test-ci: diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index c5a54840c..abe59390c 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -20,6 +20,10 @@ on: schedule: - cron: '18 12 * * 1' +concurrency: + group: ${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: analyze: name: Analyze diff --git a/.github/workflows/jekyll.yml b/.github/workflows/jekyll.yml index b3416cf92..a7e39eb4f 100644 --- a/.github/workflows/jekyll.yml +++ b/.github/workflows/jekyll.yml @@ -10,6 +10,10 @@ on: schedule: - cron: '0 0 * * *' +concurrency: + group: ${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: jekyll: runs-on: ubuntu-latest diff --git a/.github/workflows/needs-rebase.yaml b/.github/workflows/needs-rebase.yaml index 832f5f8b8..a9f5db3e0 100644 --- a/.github/workflows/needs-rebase.yaml +++ b/.github/workflows/needs-rebase.yaml @@ -8,6 +8,10 @@ on: pull_request_target: types: [synchronize] +concurrency: + group: ${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: main: runs-on: ubuntu-latest diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c1da8bf2c..ef9810461 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,6 +8,10 @@ on: branches: - main +concurrency: + group: ${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: release: name: release diff --git a/.github/workflows/size.yaml b/.github/workflows/size.yaml index 34fafadb4..ad77c01ca 100644 --- a/.github/workflows/size.yaml +++ b/.github/workflows/size.yaml @@ -4,6 +4,10 @@ on: pull_request_target: types: [opened, synchronize] +concurrency: + group: ${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: update_labels: runs-on: ubuntu-latest diff --git a/.github/workflows/testing-pr.yml b/.github/workflows/testing-pr.yml index 63ec8bc89..dca03db5b 100644 --- a/.github/workflows/testing-pr.yml +++ b/.github/workflows/testing-pr.yml @@ -10,6 +10,10 @@ on: # types: [labeled] workflow_dispatch: +concurrency: + group: ${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: build-and-push-docker-image: if: (!contains(github.event.label.name, 'skip-ci') && !contains(github.event.pull_request.labels.*.name, 'skip-ci')) || github.event_name == 'workflow_dispatch' || contains(github.event.pull_request.labels.*.name, 'test-ci') diff --git a/.github/workflows/ui.yml b/.github/workflows/ui.yml index 00f6e2794..758e2733b 100644 --- a/.github/workflows/ui.yml +++ b/.github/workflows/ui.yml @@ -8,6 +8,10 @@ on: pull_request_review: types: [submitted, edited] +concurrency: + group: ${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: build: if: (!contains(github.event.label.name, 'skip-ci-ui') || github.event_name == 'workflow_dispatch' || contains(github.event.pull_request.labels.*.name, 'test-ci-ui') diff --git a/.github/workflows/update_semver.yml b/.github/workflows/update_semver.yml index a6a2333ce..a38668eb6 100644 --- a/.github/workflows/update_semver.yml +++ b/.github/workflows/update_semver.yml @@ -7,6 +7,10 @@ on: types: - published +concurrency: + group: ${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: update-semver: runs-on: ubuntu-latest