浏览代码

Merge pull request #7344 from mhilbrunner/limit-ci-concurrency

Max Hilbrunner 2 年之前
父节点
当前提交
3052884953
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      .github/workflows/ci.yml

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

@@ -1,8 +1,13 @@
 name: Continuous integration
 name: Continuous integration
+
 on:
 on:
   push:
   push:
   pull_request:
   pull_request:
 
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+  cancel-in-progress: true
+
 jobs:
 jobs:
   build:
   build:
     runs-on: ubuntu-20.04
     runs-on: ubuntu-20.04