Skip to content
This repository was archived by the owner on Dec 26, 2023. It is now read-only.

Commit c25c759

Browse files
committed
Show results
1 parent d7b67a4 commit c25c759

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

dist/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5078,7 +5078,7 @@ async function run() {
50785078
${testSummary}
50795079
}
50805080
`;
5081-
await octokit.checks.create({
5081+
const response = await octokit.checks.create({
50825082
head_sha: github_1.context.sha,
50835083
name: 'Tests Results',
50845084
owner: github_1.context.repo.owner,
@@ -5092,6 +5092,7 @@ ${testSummary}
50925092
text: details
50935093
}
50945094
});
5095+
core_1.debug(`response ${JSON.stringify(response, null, ' ')}`);
50955096
}
50965097
catch (error) {
50975098
core_1.setFailed(error.message);

src/main.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {setFailed, getInput} from '@actions/core'
1+
import {setFailed, getInput, debug} from '@actions/core'
22
import {GitHub, context} from '@actions/github'
33
import {readResults, Annotation} from './nunit'
44

@@ -33,7 +33,7 @@ async function run(): Promise<void> {
3333
${testSummary}
3434
}
3535
`
36-
await octokit.checks.create({
36+
const response = await octokit.checks.create({
3737
head_sha: context.sha,
3838
name: 'Tests Results',
3939
owner: context.repo.owner,
@@ -47,6 +47,8 @@ ${testSummary}
4747
text: details
4848
}
4949
})
50+
51+
debug(`response ${JSON.stringify(response, null, ' ')}`);
5052
} catch (error) {
5153
setFailed(error.message)
5254
}

0 commit comments

Comments
 (0)