Skip to content

Commit ed204cc

Browse files
claude[bot]claude
andauthored
ci: cancel stale in-progress runs on PR pushes (#4297)
ci: cancel in-progress runs when a PR branch gets a new push Co-authored-by: Claude <noreply@anthropic.com>
1 parent a042139 commit ed204cc

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ on:
1212
types: [checks_requested]
1313
workflow_call:
1414

15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
17+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
18+
1519
jobs:
1620
lint-and-build:
1721
runs-on: ubuntu-22.04

.github/workflows/semantic.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
- edited
88
- synchronize
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
12+
cancel-in-progress: true
13+
1014
permissions:
1115
contents: read
1216

0 commit comments

Comments
 (0)