Răsfoiți Sursa

Allow cancel existing duplicated tasks

onevcat 1 an în urmă
părinte
comite
78c172ba54
2 a modificat fișierele cu 8 adăugiri și 0 ștergeri
  1. 4 0
      .github/workflows/build.yaml
  2. 4 0
      .github/workflows/test.yaml

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

@@ -2,6 +2,10 @@ name: build
 
 on: [push, pull_request]
 
+concurrency: 
+  group: ${{ github.head_ref }}
+  cancel-in-progress: true
+
 jobs:
   build-framework:
     runs-on: self-hosted

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

@@ -2,6 +2,10 @@ name: test
 
 on: [push, pull_request]
 
+concurrency: 
+  group: ${{ github.head_ref }}
+  cancel-in-progress: true
+
 jobs:
   run-tests:
     runs-on: self-hosted