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