CI: add concurrency limits for pr test
[openwrt/staging/noltari.git] / .github / workflows / tools.yml
index 69ee456bce94ffc01659c8f29c809aad35d23934..19c11f03a6237cfd6cf27e901ae13e2c85cbae35 100644 (file)
@@ -15,6 +15,10 @@ on:
 permissions:
   contents: read
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
 jobs:
   build-macos-latest:
     name: Build tools with macos latest