From 21d620ae085e982527e4bfcab2180ec4709958cf Mon Sep 17 00:00:00 2001 From: Joris Wouter Jonkers Date: Mon, 26 Oct 2026 16:09:10 +0100 Subject: [PATCH] ci: cancel superseded runs outside main --- .github/workflows/deploy-preview.yml | 4 ++++ .github/workflows/repository-hygiene.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index 1711bfc..06521c5 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -14,6 +14,10 @@ on: # context-resolution bug reached every repository. - '.github/workflows/deploy-preview.yml' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + permissions: {} jobs: diff --git a/.github/workflows/repository-hygiene.yml b/.github/workflows/repository-hygiene.yml index 77fd9d8..ebf2588 100644 --- a/.github/workflows/repository-hygiene.yml +++ b/.github/workflows/repository-hygiene.yml @@ -3,6 +3,10 @@ 'on': 'pull_request': +'concurrency': + 'group': '${{ github.workflow }}-${{ github.ref }}' + 'cancel-in-progress': '${{ github.ref != ''refs/heads/main'' }}' + 'permissions': 'contents': 'read' 'pull-requests': 'read'