mirror of
https://github.com/official-stockfish/Stockfish.git
synced 2026-07-22 12:47:08 +00:00
ci: cancel stale workflow runs per PR or ref
Add workflow-level concurrency to the direct GitHub Actions entrypoints so a newer run for the same pull request or repository ref cancels the older in-progress run. Keep the reusable workflow graph, release guards, triggers, and permissions unchanged while documenting the concurrency policy and the official GitHub references used for the change. closes https://github.com/official-stockfish/Stockfish/pull/6773 No functional change.
This commit is contained in:
committed by
Joost VandeVondele
parent
692d90bd74
commit
b35a064eae
@@ -12,6 +12,10 @@ on:
|
|||||||
- "**.cpp"
|
- "**.cpp"
|
||||||
- "**.h"
|
- "**.h"
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,10 @@ on:
|
|||||||
schedule:
|
schedule:
|
||||||
- cron: "17 18 * * 1"
|
- cron: "17 18 * * 1"
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
analyze:
|
analyze:
|
||||||
name: Analyze
|
name: Analyze
|
||||||
|
|||||||
@@ -11,6 +11,11 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
- tools
|
- tools
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Prerelease:
|
Prerelease:
|
||||||
if: github.repository == 'official-stockfish/Stockfish' && (github.ref == 'refs/heads/master' || (startsWith(github.ref_name, 'sf_') && github.ref_type == 'tag'))
|
if: github.repository == 'official-stockfish/Stockfish' && (github.ref == 'refs/heads/master' || (startsWith(github.ref_name, 'sf_') && github.ref_type == 'tag'))
|
||||||
|
|||||||
Reference in New Issue
Block a user