]> git.openstreetmap.org Git - chef.git/commitdiff
GH action cancel replaced in-progress runs
authorGrant Slater <git@firefishy.com>
Thu, 21 Apr 2022 10:46:40 +0000 (11:46 +0100)
committerGrant <github@firefishy.com>
Thu, 21 Apr 2022 11:10:29 +0000 (12:10 +0100)
.github/workflows/cookstyle.yml
.github/workflows/test-kitchen.yml

index a9b8b962c1ec2df0c586427da8eca4b8bfe3d869..62d14b8aff4111424c078299c947a36206e25f0a 100644 (file)
@@ -1,7 +1,13 @@
 name: Cookstyle
+
 on:
   - push
   - pull_request
+
+concurrency:
+  group: ${{ github.workflow }}-{{ github.head_ref || github.ref }}
+  cancel-in-progress: true
+
 jobs:
   cookstyle:
     name: Cookstyle
index 8bb8dcc154b8452ee1a363cb1003d250e9251579..577297c7b2eaa94bbb93a077f16b8247c6369abd 100644 (file)
@@ -1,7 +1,13 @@
 name: Test Kitchen
+
 on:
   - push
   - pull_request
+
+concurrency:
+  group: ${{ github.workflow }}-{{ github.head_ref || github.ref }}
+  cancel-in-progress: true
+
 jobs:
   kitchen:
     name: Test Kitchen