Browse Source

Allow cancel existing duplicated tasks

onevcat 1 year ago
parent
commit
78c172ba54
2 changed files with 8 additions and 0 deletions
  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