Merge pull request #242 from luisito666/feature/add-new-output-for-url-url_html

Add new output for url url html
This commit is contained in:
Julien Catania 2023-09-22 21:27:34 +02:00 committed by GitHub
commit 19f5a0d16b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View file

@ -185,6 +185,8 @@ jobs:
| failed | Count of failed tests |
| skipped | Count of skipped tests |
| time | Test execution time [ms] |
| url | Check run URL |
| url_html | Check run URL HTML |
## Supported formats

2
dist/index.js generated vendored
View file

@ -412,6 +412,8 @@ 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;
});
}

View file

@ -199,6 +199,8 @@ 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
}