Cancel in progress CI workflows after new pushes ()

Create a concurreny group which will cancel in progress workflows after
new pushes to pull requests or python-kasa branches.
This commit is contained in:
Steven B. 2025-01-24 18:45:14 +00:00 committed by GitHub
parent 9b7bf367ae
commit 5b9b89769a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions
.github/workflows

@ -14,6 +14,10 @@ on:
- 'janitor/**'
workflow_dispatch: # to allow manual re-runs
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
UV_VERSION: 0.4.16

@ -15,6 +15,10 @@ on:
schedule:
- cron: '44 17 * * 3'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
analyze:
name: Analyze