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 <rlau@redhat.com>
Reviewed-By: Mestery <mestery@protonmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
Michaël Zasso authored and Danielle Adams committed 2022-04-23 22:26:03 -04:00
1 parent f4e39171de
commit 290a2bfd81
2 files changed
+4

No files matched your search

+2
View File
@@ -13,6 +13,8 @@ on:
schedule:
- cron: '*/5 * * * *'
concurrency: ${{ github.workflow }}
env:
NODE_VERSION: lts/*