[ci] let CI to cancel previus job if new one is scheduled

Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
This commit is contained in:
Andrei Kvapil
2025-04-24 11:25:10 +02:00
parent 0fc3fdcb3d
commit 8a4793d571
5 changed files with 20 additions and 0 deletions

View File

@@ -7,6 +7,10 @@ on:
pull_request:
paths-ignore:
- '**.md'
concurrency:
group: pre-commit-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
pre-commit:
runs-on: ubuntu-22.04