浏览代码

Merge pull request #43678 from crazy-max/ci-concurrency

ci: add concurrency check
Sebastiaan van Stijn 3 年之前
父节点
当前提交
6f1cefe385
共有 2 个文件被更改,包括 8 次插入0 次删除
  1. 4 0
      .github/workflows/ci.yml
  2. 4 0
      .github/workflows/windows.yml

+ 4 - 0
.github/workflows/ci.yml

@@ -1,5 +1,9 @@
 name: ci
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 on:
   workflow_dispatch:
   push:

+ 4 - 0
.github/workflows/windows.yml

@@ -1,5 +1,9 @@
 name: windows
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 on:
   workflow_dispatch:
   push: