Przeglądaj źródła

chore(CI): use concurrency to cancel in-progress workflows

zhanghongtong 4 lat temu
rodzic
commit
46a794e38b

+ 4 - 0
.github/workflows/build_packages.yaml

@@ -1,5 +1,9 @@
 name: Cross build packages
 
+concurrency:
+  group: build-${{ github.event_name }}-${{ github.ref }}
+  cancel-in-progress: true
+
 on:
   schedule:
     - cron:  '0 */6 * * *'

+ 5 - 0
.github/workflows/build_slim_packages.yaml

@@ -1,5 +1,10 @@
 name: Build slim packages
 
+concurrency:
+  group: slim-${{ github.event_name }}-${{ github.ref }}
+  cancel-in-progress: true
+
+
 on:
   push:
     tags:

+ 5 - 0
.github/workflows/run_api_tests.yaml

@@ -1,5 +1,10 @@
 name: API Test Suite
 
+concurrency:
+  group: apt-test-${{ github.event_name }}-${{ github.ref }}
+  cancel-in-progress: true
+
+
 on:
   push:
     tags:

+ 4 - 0
.github/workflows/run_fvt_tests.yaml

@@ -1,5 +1,9 @@
 name: Functional Verification Tests
 
+concurrency:
+  group: fvt-${{ github.event_name }}-${{ github.ref }}
+  cancel-in-progress: true
+
 on:
   push:
     tags:

+ 4 - 0
.github/workflows/run_relup_tests.yaml

@@ -1,5 +1,9 @@
 name: Release Upgrade Tests
 
+concurrency:
+  group: relup-${{ github.event_name }}-${{ github.ref }}
+  cancel-in-progress: true
+
 on:
   push:
     tags:

+ 4 - 0
.github/workflows/run_test_cases.yaml

@@ -1,5 +1,9 @@
 name: Run test case
 
+concurrency:
+  group: test-${{ github.event_name }}-${{ github.ref }}
+  cancel-in-progress: true
+
 on:
   push:
     tags: