mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-17 06:47:09 +01:00
don't fail without write access
This commit is contained in:
parent
26b8b7c891
commit
39a2ecbea2
2 changed files with 120 additions and 111 deletions
5
dist/index.js
generated
vendored
5
dist/index.js
generated
vendored
|
|
@ -283,6 +283,7 @@ class TestReporter {
|
|||
}
|
||||
}
|
||||
core.info(`Creating check run ${name}`);
|
||||
try {
|
||||
const createResp = yield this.octokit.rest.checks.create(Object.assign({ head_sha: this.context.sha, name, status: 'in_progress', output: {
|
||||
title: name,
|
||||
summary: ''
|
||||
|
|
@ -338,6 +339,10 @@ class TestReporter {
|
|||
});
|
||||
yield webhook.send(req);
|
||||
}
|
||||
}
|
||||
catch (error) {
|
||||
core.error(`Could not create check to store the results`);
|
||||
}
|
||||
return results;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -184,6 +184,7 @@ class TestReporter {
|
|||
}
|
||||
|
||||
core.info(`Creating check run ${name}`)
|
||||
try {
|
||||
const createResp = await this.octokit.rest.checks.create({
|
||||
head_sha: this.context.sha,
|
||||
name,
|
||||
|
|
@ -259,6 +260,9 @@ class TestReporter {
|
|||
|
||||
await webhook.send(req)
|
||||
}
|
||||
} catch (error) {
|
||||
core.error(`Could not create check to store the results`)
|
||||
}
|
||||
|
||||
return results
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue