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