From 34eb3b9e4b8eb6160761b4b22c63e2f249028bcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Wed, 16 Feb 2022 16:30:01 +0100 Subject: [PATCH] build: prevent concurrent CI and CQ worflow runs Use concurrency groups to prevent new runs from being started while a previous job is already running. This can happen when a lot of unrelated jobs are pending because of runner exhaustion. --- .github/workflows/auto-start-ci.yml | 2 ++ .github/workflows/commit-queue.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/auto-start-ci.yml b/.github/workflows/auto-start-ci.yml index 3c5ad5948cb11f..57051fd1f3da03 100644 --- a/.github/workflows/auto-start-ci.yml +++ b/.github/workflows/auto-start-ci.yml @@ -8,6 +8,8 @@ on: # ./doc/contributing/commit-queue.md - cron: '*/5 * * * *' +concurrency: auto-start-ci + env: NODE_VERSION: lts/* diff --git a/.github/workflows/commit-queue.yml b/.github/workflows/commit-queue.yml index f4aee6dd37a3ee..a873d852e223c8 100644 --- a/.github/workflows/commit-queue.yml +++ b/.github/workflows/commit-queue.yml @@ -13,6 +13,8 @@ on: schedule: - cron: '*/5 * * * *' +concurrency: commit-queue + env: NODE_VERSION: lts/*