CI: add concurrency limits for pr test
[openwrt/staging/nbd.git] / .github / workflows / kernel.yml
index 6cff102091e27a71f8b2e7cb7321f66d9ead87c4..bc39eb359c55b429b7a50917b8c07fd0be054a06 100644 (file)
@@ -21,6 +21,10 @@ on:
 permissions:
   contents: read
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
 jobs:
   determine_targets:
     name: Set targets