From 197fda6b77337a22be408fd0b52aca7564303b44 Mon Sep 17 00:00:00 2001 From: Ian Faust Date: Wed, 2 Oct 2024 06:45:55 +0200 Subject: [PATCH] [enhancement] reduce Github Actions runner loading by setting concurrencies (#2931) * Update docker-validation-ci.yml * Update docker-validation-nightly.yml * Update label-enforcement.yml * Update pr-checklist.yml * Update renovate-validation.yml --- .github/workflows/docker-validation-ci.yml | 4 ++++ .github/workflows/docker-validation-nightly.yml | 4 ++++ .github/workflows/label-enforcement.yml | 4 ++++ .github/workflows/pr-checklist.yml | 4 ++++ .github/workflows/renovate-validation.yml | 4 ++++ 5 files changed, 20 insertions(+) diff --git a/.github/workflows/docker-validation-ci.yml b/.github/workflows/docker-validation-ci.yml index 380172f82a5..09e258e6245 100644 --- a/.github/workflows/docker-validation-ci.yml +++ b/.github/workflows/docker-validation-ci.yml @@ -11,6 +11,10 @@ on: permissions: contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref_name }}-${{ github.event.number || github.sha }} + cancel-in-progress: true + jobs: validate: name: Docker validation diff --git a/.github/workflows/docker-validation-nightly.yml b/.github/workflows/docker-validation-nightly.yml index ea6ec499025..be2815af656 100644 --- a/.github/workflows/docker-validation-nightly.yml +++ b/.github/workflows/docker-validation-nightly.yml @@ -23,6 +23,10 @@ on: permissions: contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref_name }}-${{ github.event.number || github.sha }} + cancel-in-progress: true + jobs: validate: name: Docker validation diff --git a/.github/workflows/label-enforcement.yml b/.github/workflows/label-enforcement.yml index c862f64b798..7b393035e45 100644 --- a/.github/workflows/label-enforcement.yml +++ b/.github/workflows/label-enforcement.yml @@ -6,6 +6,10 @@ on: permissions: contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref_name }}-${{ github.event.number || github.sha }} + cancel-in-progress: true + jobs: label_checker: name: Please include labels on your pull request diff --git a/.github/workflows/pr-checklist.yml b/.github/workflows/pr-checklist.yml index 0e9026bcfdc..85b745e30b0 100644 --- a/.github/workflows/pr-checklist.yml +++ b/.github/workflows/pr-checklist.yml @@ -20,6 +20,10 @@ on: pull_request: types: [opened, edited, synchronize] +concurrency: + group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref_name }}-${{ github.event.number || github.sha }} + cancel-in-progress: true + jobs: checklist: name: Close all checkboxes before moving from draft diff --git a/.github/workflows/renovate-validation.yml b/.github/workflows/renovate-validation.yml index 3d273fcce43..d44fa96ed22 100644 --- a/.github/workflows/renovate-validation.yml +++ b/.github/workflows/renovate-validation.yml @@ -17,6 +17,10 @@ on: permissions: contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref_name }}-${{ github.event.number || github.sha }} + cancel-in-progress: true + jobs: validate: name: Renovate validation