Skip to content

Commit

Permalink
Add extra logging on failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
Codex- committed Nov 7, 2022
1 parent aa96a2e commit d2a5924
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ const path = require("node:path");
testSummary.annotations = [annotation, ...testSummary.annotations];

const pullRequest = github.context.payload.pull_request;
const link = (pullRequest && pullRequest.html_url) || github.context.ref;
const status = "completed";
const head_sha =
(pullRequest && pullRequest.head.sha) || github.context.sha;
Expand All @@ -62,6 +61,8 @@ const path = require("node:path");
const octokit = github.getOctokit(accessToken);
await octokit.rest.checks.create(createCheckRequest);
} catch (error) {
console.error(error.message)
console.error(error.stack)
core.setFailed(error.message);
}
})();
Expand Down

0 comments on commit d2a5924

Please sign in to comment.