mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-15 22:07:09 +01:00
Do not throw error when workflow_run has been cancelled
It's common to cancel all jobs/workflows after first error. There could still be test results user wants to see in a report
This commit is contained in:
parent
073a4b9a03
commit
cf4814e8de
3 changed files with 1 additions and 7 deletions
3
dist/index.js
generated
vendored
3
dist/index.js
generated
vendored
|
|
@ -1420,9 +1420,6 @@ function getCheckRunContext() {
|
|||
if (!event.workflow_run) {
|
||||
throw new Error("Event of type 'workflow_run' is missing 'workflow_run' field");
|
||||
}
|
||||
if (event.workflow_run.conclusion === 'cancelled') {
|
||||
throw new Error(`Workflow run ${event.workflow_run.id} has been cancelled`);
|
||||
}
|
||||
return {
|
||||
sha: event.workflow_run.head_commit.id,
|
||||
runId: event.workflow_run.id
|
||||
|
|
|
|||
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
|
|
@ -15,9 +15,6 @@ export function getCheckRunContext(): {sha: string; runId: number} {
|
|||
if (!event.workflow_run) {
|
||||
throw new Error("Event of type 'workflow_run' is missing 'workflow_run' field")
|
||||
}
|
||||
if (event.workflow_run.conclusion === 'cancelled') {
|
||||
throw new Error(`Workflow run ${event.workflow_run.id} has been cancelled`)
|
||||
}
|
||||
return {
|
||||
sha: event.workflow_run.head_commit.id,
|
||||
runId: event.workflow_run.id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue