8000 Cancel in progress CI workflows after new pushes (#1481) · rSffsE/python-kasa@5b9b897 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5b9b897

Browse files
authored
Cancel in progress CI workflows after new pushes (python-kasa#1481)
Create a concurreny group which will cancel in progress workflows after new pushes to pull requests or python-kasa branches.
1 parent 9b7bf36 commit 5b9b897

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ on:
1414
- 'janitor/**'
1515
workflow_dispatch: # to allow manual re-runs
1616

17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
19+
cancel-in-progress: true
20+
1721
env:
1822
UV_VERSION: 0.4.16
1923

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
schedule:
1616
- cron: '44 17 * * 3'
1717

18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
20+
cancel-in-progress: true
21+
1822
jobs:
1923
analyze:
2024
name: Analyze

0 commit comments

Comments
 (0)
0