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:
parent
680f3a5e9b
commit
34cf563add
2
.github/workflows/auto-start-ci.yml
vendored
2
.github/workflows/auto-start-ci.yml
vendored
@ -8,6 +8,8 @@ on:
|
||||
# ./doc/contributing/commit-queue.md
|
||||
- cron: '*/5 * * * *'
|
||||
|
||||
concurrency: ${{ github.workflow }}
|
||||
|
||||
env:
|
||||
NODE_VERSION: lts/*
|
||||
|
||||
|
2
.github/workflows/commit-queue.yml
vendored
2
.github/workflows/commit-queue.yml
vendored
@ -13,6 +13,8 @@ on:
|
||||
schedule:
|
||||
- cron: '*/5 * * * *'
|
||||
|
||||
concurrency: ${{ github.workflow }}
|
||||
|
||||
env:
|
||||
NODE_VERSION: lts/*
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user