From 10c87d5a39a8009e91358f67a410e0a06da171d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Mon, 17 Oct 2022 08:04:38 +0200 Subject: [PATCH] Add action concurrency (#3956) --- .github/workflows/builder.yml | 4 ++++ .github/workflows/ci.yaml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/builder.yml b/.github/workflows/builder.yml index 140de3b00..758d7b017 100644 --- a/.github/workflows/builder.yml +++ b/.github/workflows/builder.yml @@ -37,6 +37,10 @@ env: BUILD_NAME: supervisor BUILD_TYPE: supervisor +concurrency: + group: '${{ github.workflow }}-${{ github.ref }}' + cancel-in-progress: true + jobs: init: name: Initialize build diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 75176eb20..64e57ad47 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -12,6 +12,10 @@ env: PRE_COMMIT_HOME: ~/.cache/pre-commit DEFAULT_CAS: v1.0.2 +concurrency: + group: '${{ github.workflow }}-${{ github.ref }}' + cancel-in-progress: true + jobs: # Separate job to pre-populate the base dependency cache # This prevent upcoming jobs to do the same individually