ci: cancel superseded PR runs to free runner capacity

cancel-in-progress is gated to pull_request events so merge_group and
push runs always complete — only redundant CI from rapid PR pushes
gets cancelled.
This commit is contained in:
Mohamed Boudra
2026-05-10 14:12:56 +07:00
parent fd74abcdca
commit 478aa4b70e

View File

@@ -8,6 +8,10 @@ on:
merge_group: merge_group:
workflow_dispatch: workflow_dispatch:
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs: jobs:
format: format:
runs-on: ubuntu-latest runs-on: ubuntu-latest