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 537c669..89aa861 100644 --- a/.github/workflows/repository-hygiene.yml +++ b/.github/workflows/repository-hygiene.yml @@ -3,6 +3,10 @@ name: 'Repository Hygiene' 'on': pull_request: +'concurrency': + 'group': '${{ github.workflow }}-${{ github.ref }}' + 'cancel-in-progress': '${{ github.ref != ''refs/heads/main'' }}' + permissions: contents: 'read' pull-requests: 'read'