From c0ae4660e15ae872b3ea612fc36fa993f3f7c9f3 Mon Sep 17 00:00:00 2001 From: Ciaran Moran Date: Tue, 30 May 2023 10:37:13 +0100 Subject: [PATCH] Actions: cancel on new commits --- .github/workflows/chart.yaml | 3 +++ .github/workflows/docs.yaml | 3 +++ .github/workflows/pr.yaml | 3 +++ .github/workflows/prepare-release.yaml | 3 +++ .github/workflows/release.yaml | 3 +++ .github/workflows/scan.yaml | 3 +++ 6 files changed, 18 insertions(+) diff --git a/.github/workflows/chart.yaml b/.github/workflows/chart.yaml index 5d447fe643..969334508e 100644 --- a/.github/workflows/chart.yaml +++ b/.github/workflows/chart.yaml @@ -11,6 +11,9 @@ on: - 'main' paths: - 'charts/**' + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true workflow_dispatch: env: diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 1c8fd06617..941953886f 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -11,6 +11,9 @@ on: - 'main' paths: - 'website/**' + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true workflow_dispatch: jobs: diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 42e175b1ae..87a3e4d31a 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -5,6 +5,9 @@ on: pull_request: branches: - main + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true workflow_dispatch: env: diff --git a/.github/workflows/prepare-release.yaml b/.github/workflows/prepare-release.yaml index 3bd46ad32c..8d37fb3d7b 100644 --- a/.github/workflows/prepare-release.yaml +++ b/.github/workflows/prepare-release.yaml @@ -1,6 +1,9 @@ name: prepare-release on: + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true workflow_dispatch: inputs: version: diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 609996b88c..a9bb916385 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -4,6 +4,9 @@ on: pull_request_review: types: - submitted + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true env: REGISTRY: ghcr.io diff --git a/.github/workflows/scan.yaml b/.github/workflows/scan.yaml index cfb726250f..9956957c34 100644 --- a/.github/workflows/scan.yaml +++ b/.github/workflows/scan.yaml @@ -9,6 +9,9 @@ on: branches: - main - v2 + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true workflow_dispatch: jobs: