From 19f39bf0c72fdff99c220706e8ad152dfb904233 Mon Sep 17 00:00:00 2001 From: Timon Back Date: Fri, 8 Nov 2024 15:39:48 +0100 Subject: [PATCH] chore(gh): cancel out-dated workflow runs (#1063) --- .github/workflows/owasp.yml | 4 ++++ .github/workflows/publish-releases.yml | 4 ++++ .github/workflows/springwolf-addons.yml | 4 ++++ .github/workflows/springwolf-asyncapi.yml | 4 ++++ .github/workflows/springwolf-bindings.yml | 4 ++++ .github/workflows/springwolf-core.yml | 4 ++++ .github/workflows/springwolf-plugins.yml | 4 ++++ .github/workflows/springwolf-ui.yml | 8 ++++++-- 8 files changed, 34 insertions(+), 2 deletions(-) diff --git a/.github/workflows/owasp.yml b/.github/workflows/owasp.yml index 53ed877e0..c119f93bb 100644 --- a/.github/workflows/owasp.yml +++ b/.github/workflows/owasp.yml @@ -4,6 +4,10 @@ on: - cron: "48 9 * * 4" workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: build: runs-on: ubuntu-latest diff --git a/.github/workflows/publish-releases.yml b/.github/workflows/publish-releases.yml index 5ade361cc..85393140f 100644 --- a/.github/workflows/publish-releases.yml +++ b/.github/workflows/publish-releases.yml @@ -6,6 +6,10 @@ permissions: contents: write packages: write +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: publish-release: runs-on: ubuntu-latest diff --git a/.github/workflows/springwolf-addons.yml b/.github/workflows/springwolf-addons.yml index d1309cbe5..528317ad1 100644 --- a/.github/workflows/springwolf-addons.yml +++ b/.github/workflows/springwolf-addons.yml @@ -8,6 +8,10 @@ on: types: [ opened, synchronize, ready_for_review ] workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: build: diff --git a/.github/workflows/springwolf-asyncapi.yml b/.github/workflows/springwolf-asyncapi.yml index 4d99c9de0..9bc245a26 100644 --- a/.github/workflows/springwolf-asyncapi.yml +++ b/.github/workflows/springwolf-asyncapi.yml @@ -8,6 +8,10 @@ on: types: [ opened, synchronize, ready_for_review ] workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: build: diff --git a/.github/workflows/springwolf-bindings.yml b/.github/workflows/springwolf-bindings.yml index 953b0ebf3..d5a6f1b64 100644 --- a/.github/workflows/springwolf-bindings.yml +++ b/.github/workflows/springwolf-bindings.yml @@ -8,6 +8,10 @@ on: types: [ opened, synchronize, ready_for_review ] workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: build: diff --git a/.github/workflows/springwolf-core.yml b/.github/workflows/springwolf-core.yml index 996ab60c5..25ebf8f5d 100644 --- a/.github/workflows/springwolf-core.yml +++ b/.github/workflows/springwolf-core.yml @@ -8,6 +8,10 @@ on: types: [ opened, synchronize, ready_for_review ] workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + permissions: contents: read checks: write diff --git a/.github/workflows/springwolf-plugins.yml b/.github/workflows/springwolf-plugins.yml index 40f323077..73978f974 100644 --- a/.github/workflows/springwolf-plugins.yml +++ b/.github/workflows/springwolf-plugins.yml @@ -13,6 +13,10 @@ permissions: checks: write id-token: write +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: build: diff --git a/.github/workflows/springwolf-ui.yml b/.github/workflows/springwolf-ui.yml index a7fb981bf..1141a253d 100644 --- a/.github/workflows/springwolf-ui.yml +++ b/.github/workflows/springwolf-ui.yml @@ -13,8 +13,9 @@ permissions: checks: write id-token: write -env: - project: springwolf-ui +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: build: @@ -22,6 +23,9 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 10 + env: + project: springwolf-ui + steps: - uses: actions/checkout@v4