workflows/labels: run to completion on error
This runs all PRs in scope to completion, before reporting errors.
This commit is contained in:
6
.github/workflows/labels.yml
vendored
6
.github/workflows/labels.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user