Move outputs to run function

This commit is contained in:
luisito666 2022-10-04 09:30:10 -05:00
parent ff6e1f225b
commit 64efc64bfa

View file

@ -129,6 +129,7 @@ class TestReporter {
core.setOutput('failed', failed)
core.setOutput('skipped', skipped)
core.setOutput('time', time)
core.setOutput('runid', this.context.runId)
if (this.failOnError && isFailed) {
core.setFailed(`Failed test were found and 'fail-on-error' option is set to ${this.failOnError}`)
@ -193,8 +194,6 @@ class TestReporter {
core.info(`Check run create response: ${resp.status}`)
core.info(`Check run URL: ${resp.data.url}`)
core.info(`Check run HTML: ${resp.data.html_url}`)
core.setOutput('url', resp.data.url)
core.setOutput('url_html', resp.data.html_url)
return results
}