workflows/labels: run to completion on error

This runs all PRs in scope to completion, before reporting errors.
This commit is contained in:
Wolfgang Walther
2025-06-16 15:56:19 +02:00
parent 4425979533
commit c12c91f465

View File

@@ -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