CI: add concurrency limits for pr test
[openwrt/openwrt.git] / .github / workflows / packages.yml
index 7bcaa2b3d335664ef2b12240779241f445dcc7bc..340ee0c20446c559970c1b1703fe149412f7e003 100644 (file)
@@ -23,6 +23,10 @@ on:
 permissions:
   contents: read
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
 jobs:
   build:
     name: Build Packages with external toolchain