feat: cancel ongoing tests if new CI is triggered (#2046) [skip ci]

This commit is contained in:
NanoCode012
2024-11-13 22:06:59 +07:00
committed by GitHub
parent 8c480b2804
commit 28924fc791

View File

@@ -15,6 +15,11 @@ on:
- '.github/workflows/*.yml'
workflow_dispatch:
# Cancel jobs on the same ref if a new one is triggered
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
pre-commit:
name: pre-commit