浏览代码

Make actions cancelable

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Andy Scherzinger 2 年之前
父节点
当前提交
381fdfee00
共有 4 个文件被更改,包括 16 次插入0 次删除
  1. 4 0
      .github/workflows/analysis.yml
  2. 4 0
      .github/workflows/assembleFlavors.yml
  3. 4 0
      .github/workflows/check.yml
  4. 4 0
      .github/workflows/qa.yml

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

@@ -10,6 +10,10 @@ permissions:
   pull-requests: write
   contents: write
 
+concurrency:
+  group: analysis-wrapper-${{ github.head_ref || github.run_id }}
+  cancel-in-progress: true
+
 jobs:
   analysis:
     runs-on: ubuntu-latest

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

@@ -7,6 +7,10 @@ on:
 # Declare default permissions as read only.
 permissions: read-all
 
+concurrency:
+  group: assemble-flavors-${{ github.head_ref || github.run_id }}
+  cancel-in-progress: true
+
 jobs:
   flavor:
     runs-on: ubuntu-latest

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

@@ -7,6 +7,10 @@ on:
 # Declare default permissions as read only.
 permissions: read-all
 
+concurrency:
+  group: check-kotlin-${{ github.head_ref || github.run_id }}
+  cancel-in-progress: true
+
 jobs:
   check:
     runs-on: ubuntu-latest

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

@@ -8,6 +8,10 @@ permissions:
   pull-requests: write
   contents: read
 
+concurrency:
+  group: qa-build-${{ github.head_ref || github.run_id }}
+  cancel-in-progress: true
+
 jobs:
   qa:
     runs-on: ubuntu-latest