浏览代码

Closes: #17795 - Add concurrency to CI (#18042)

* Closes: #17795 - Add concurrency to CI

* Add comment to demonstrate functionality
Daniel Sheppard 1 年之前
父节点
当前提交
13bd2ed767
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      .github/workflows/ci.yml

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

@@ -15,6 +15,11 @@ on:
 permissions:
   contents: read
 
+# Add concurrency group to control job running
+concurrency:
+  group: ${{ github.event_name }}-${{ github.ref }}-${{ github.actor }}
+  cancel-in-progress: true
+
 jobs:
   build:
     runs-on: ubuntu-latest