diff --git a/dist/index.js b/dist/index.js index 902f9dc..b678a52 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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, @@ -5092,6 +5092,7 @@ ${testSummary} text: details } }); + core_1.debug(`response ${JSON.stringify(response, null, ' ')}`); } catch (error) { core_1.setFailed(error.message); diff --git a/src/main.ts b/src/main.ts index 30ea206..01d2f5a 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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' @@ -33,7 +33,7 @@ async function run(): Promise { ${testSummary} } ` - await octokit.checks.create({ + const response = await octokit.checks.create({ head_sha: context.sha, name: 'Tests Results', owner: context.repo.owner, @@ -47,6 +47,8 @@ ${testSummary} text: details } }) + + debug(`response ${JSON.stringify(response, null, ' ')}`); } catch (error) { setFailed(error.message) }