This commit is contained in:
Aart Jan Kaptijn 2021-11-17 22:58:05 +01:00 committed by A. J. Kaptijn
parent 1d5276a2d9
commit e68c4b3066

View file

@ -19,7 +19,7 @@ import {SwiftXunitParser} from './parsers/swift-xunit/swift-xunit-parser'
import {normalizeDirPath, normalizeFilePath} from './utils/path-utils' import {normalizeDirPath, normalizeFilePath} from './utils/path-utils'
import {getCheckRunContext} from './utils/github-utils' import {getCheckRunContext} from './utils/github-utils'
import { IncomingWebhook } from '@slack/webhook' import {IncomingWebhook} from '@slack/webhook'
async function main(): Promise<void> { async function main(): Promise<void> {
try { try {
@ -209,8 +209,8 @@ class TestReporter {
core.setOutput('url_html', resp.data.html_url) core.setOutput('url_html', resp.data.html_url)
if (isFailed && this.slackWebhook) { if (isFailed && this.slackWebhook) {
const webhook = new IncomingWebhook(this.slackWebhook); const webhook = new IncomingWebhook(this.slackWebhook)
await webhook.send("Test run failed: " + resp.data.html_url); await webhook.send('Test run failed: ' + resp.data.html_url)
} }
return results return results
} }