From 1315f1eb25f9e05a674e4d4cb82a964edee4c449 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Wed, 16 Feb 2022 17:37:29 +0100 Subject: [PATCH] build: prevent concurrent CI and CQ workflow 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. PR-URL: https://github.com/nodejs/node/pull/42016 Reviewed-By: Richard Lau Reviewed-By: Mestery Reviewed-By: Antoine du Hamel --- .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..2416561ab7ebf3 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: ${{ github.workflow }} + env: NODE_VERSION: lts/* diff --git a/.github/workflows/commit-queue.yml b/.github/workflows/commit-queue.yml index f4aee6dd37a3ee..bbaf67a0e7e779 100644 --- a/.github/workflows/commit-queue.yml +++ b/.github/workflows/commit-queue.yml @@ -13,6 +13,8 @@ on: schedule: - cron: '*/5 * * * *' +concurrency: ${{ github.workflow }} + env: NODE_VERSION: lts/*