From 88a07809c8d0cfcb8a943be1e50cd9b8b4e76b2f Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Mon, 16 Jun 2025 15:56:19 +0200 Subject: [PATCH] workflows/labels: run to completion on error This runs all PRs in scope to completion, before reporting errors. (cherry picked from commit c12c91f4658e18d7a79fbf446debf118efb7a4cf) --- .github/workflows/labels.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml index 6e025a8a36ce..6bbcdfebcce3 100644 --- a/.github/workflows/labels.yml +++ b/.github/workflows/labels.yml @@ -99,7 +99,7 @@ jobs: direction: 'desc', ...prEventCondition }, - async (response, done) => await Promise.all(response.data.map(async (pull_request) => { + async (response, done) => (await Promise.allSettled(response.data.map(async (pull_request) => { const log = (k,v) => core.info(`PR #${pull_request.number} - ${k}: ${v}`) log('Last updated at', pull_request.updated_at) @@ -188,7 +188,9 @@ jobs: labels: added }) } - })) + }))) + .filter(({ status }) => status == 'rejected') + .map(({ reason }) => core.setFailed(reason)) ) - uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0