From e21ce28e6c422b39902b1886743a6155d4d4f3d9 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Thu, 21 Apr 2022 11:46:40 +0100 Subject: [PATCH] GH action cancel replaced in-progress runs --- .github/workflows/cookstyle.yml | 6 ++++++ .github/workflows/test-kitchen.yml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/cookstyle.yml b/.github/workflows/cookstyle.yml index a9b8b962c..62d14b8af 100644 --- a/.github/workflows/cookstyle.yml +++ b/.github/workflows/cookstyle.yml @@ -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 diff --git a/.github/workflows/test-kitchen.yml b/.github/workflows/test-kitchen.yml index 8bb8dcc15..577297c7b 100644 --- a/.github/workflows/test-kitchen.yml +++ b/.github/workflows/test-kitchen.yml @@ -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 -- 2.39.5