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

Commit

Permalink
Show results
Browse files Browse the repository at this point in the history
  • Loading branch information
paulpach committed Apr 9, 2020
1 parent d7b67a4 commit c25c759
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5078,7 +5078,7 @@ async function run() {
${testSummary}
}
`;
await octokit.checks.create({
const response = await octokit.checks.create({
head_sha: github_1.context.sha,
name: 'Tests Results',
owner: github_1.context.repo.owner,
Expand All @@ -5092,6 +5092,7 @@ ${testSummary}
text: details
}
});
core_1.debug(`response ${JSON.stringify(response, null, ' ')}`);
}
catch (error) {
core_1.setFailed(error.message);
Expand Down
6 changes: 4 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {setFailed, getInput} from '@actions/core'
import {setFailed, getInput, debug} from '@actions/core'
import {GitHub, context} from '@actions/github'
import {readResults, Annotation} from './nunit'

Expand Down Expand Up @@ -33,7 +33,7 @@ async function run(): Promise<void> {
${testSummary}
}
`
await octokit.checks.create({
const response = await octokit.checks.create({
head_sha: context.sha,
name: 'Tests Results',
owner: context.repo.owner,
Expand All @@ -47,6 +47,8 @@ ${testSummary}
text: details
}
})

debug(`response ${JSON.stringify(response, null, ' ')}`);
} catch (error) {
setFailed(error.message)
}
Expand Down

0 comments on commit c25c759

Please sign in to comment.