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
+10 -2
View File
@@ -10,9 +10,17 @@ on:
# To guarantee Maintained check is occasionally updated. See
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
schedule:
- cron: '35 22 * * 0'
- cron: "35 22 * * 0"
push:
branches: [ "main" ]
branches: ["main"]
paths-ignore:
- "**/*.md"
- "docs/**"
# 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' }}
# Declare default permissions as read only.
permissions: read-all