Add concurrency cancel and ignore docs/markdown changes across CI workflows (#168)

* Add concurrency cancel and ignore docs/markdown changes across CI workflows

* Clarify PR-only concurrency (no push queuing)
This commit is contained in:
Sahil Bansal
2026-02-16 21:33:27 +05:30
committed by GitHub
parent 442a974aaa
commit b0305cb54d
7 changed files with 68 additions and 2 deletions
+11
View File
@@ -4,11 +4,22 @@ on:
pull_request:
branches:
- main
paths-ignore:
- "**/*.md"
- "docs/**"
push:
branches:
- main
paths-ignore:
- "**/*.md"
- "docs/**"
workflow_dispatch:
# PRs share a concurrency group (cancel/serialize); Pushes use unique groups to avoid cancellation/queuing
concurrency:
group: ${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.ref) || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
permissions:
contents: read