From 1dc06bebe4f3b58da798ca59fa1f19485f2726d9 Mon Sep 17 00:00:00 2001 From: Hug0-Drelon Date: Wed, 9 Sep 2026 15:13:25 +0200 Subject: [PATCH] ci(workflows): cancel in-progress runs on PR updates --- .github/workflows/dependabot-reviewer.yml | 6 ++++++ .github/workflows/lint.yml | 6 ++++++ .github/workflows/typos.yml | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/.github/workflows/dependabot-reviewer.yml b/.github/workflows/dependabot-reviewer.yml index 344dd7f..9d284b8 100644 --- a/.github/workflows/dependabot-reviewer.yml +++ b/.github/workflows/dependabot-reviewer.yml @@ -4,6 +4,12 @@ on: pull_request: types: [opened] + +# Cancel superseded PR runs; master commits use unique SHAs so they still all complete. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: true + permissions: contents: read pull-requests: write diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b645893..0d2e9af 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -7,6 +7,12 @@ on: - master workflow_call: + +# Cancel superseded PR runs; master commits use unique SHAs so they still all complete. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: true + jobs: lint: runs-on: ubuntu-latest diff --git a/.github/workflows/typos.yml b/.github/workflows/typos.yml index d2be4bb..c51c33c 100644 --- a/.github/workflows/typos.yml +++ b/.github/workflows/typos.yml @@ -6,6 +6,12 @@ on: branches: - master + +# Cancel superseded PR runs; master commits use unique SHAs so they still all complete. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: true + jobs: typos: runs-on: ubuntu-latest