diff --git a/package.json b/package.json index 9df1ffd..830c245 100644 --- a/package.json +++ b/package.json @@ -32,8 +32,8 @@ "author": "Michal Dorner ", "license": "MIT", "dependencies": { - "@actions/core": "^1.2.6", - "@actions/exec": "^1.1.1", + "@actions/core": "^1.6.0", + "@actions/exec": "^1.1.0", "@actions/github": "^6.0.0", "@slack/webhook": "^6.0.0", "adm-zip": "^0.5.10", diff --git a/src/main.ts b/src/main.ts index 5ed6d12..8af285c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -201,7 +201,7 @@ class TestReporter { core.info('Creating report summary') const {listSuites, listTests, onlySummary} = this - const baseUrl = createResp.data.html_url as string + const baseUrl = createResp.data.html_url || '' const summary = getReport(results, {listSuites, listTests, baseUrl, onlySummary}) core.info('Creating annotations') @@ -232,6 +232,7 @@ class TestReporter { core.info(`Check run HTML: ${resp.data.html_url}`) core.setOutput('url', resp.data.url) core.setOutput('url_html', resp.data.html_url) + core.info(`Check run details: ${resp.data.details_url}`) if (isFailed && this.slackWebhook && this.context.branch === 'master') { const webhook = new IncomingWebhook(this.slackWebhook) diff --git a/src/utils/github-utils.ts b/src/utils/github-utils.ts index dca12df..e625ee5 100644 --- a/src/utils/github-utils.ts +++ b/src/utils/github-utils.ts @@ -125,7 +125,7 @@ async function listGitTree(octokit: InstanceType, sha: string, pa if (tr.type === 'blob') { result.push(file) } else if (tr.type === 'tree' && truncated) { - const files = await listGitTree(octokit, tr.sha as string, `${file}/`) + const files = await listGitTree(octokit, tr.sha || '', `${file}/`) result.push(...files) } }