Add build scan link as a notice annotation

- Use 'notice' method introduced in @actions/core v1.5.0
This commit is contained in:
Daz DeBoer 2021-09-05 19:15:31 -06:00
parent 4d37378696
commit c44ebadf6f
No known key found for this signature in database
GPG key ID: DD6B9F0B06683D5D
3 changed files with 5 additions and 4 deletions

6
package-lock.json generated
View file

@ -32,9 +32,9 @@
}
},
"@actions/core": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/@actions/core/-/core-1.4.0.tgz",
"integrity": "sha512-CGx2ilGq5i7zSLgiiGUtBCxhRRxibJYU6Fim0Q1Wg2aQL2LTnF27zbqZOrxfvFQ55eSBW0L8uVStgtKMpa0Qlg=="
"version": "1.5.0",
"resolved": "https://registry.npmjs.org/@actions/core/-/core-1.5.0.tgz",
"integrity": "sha512-eDOLH1Nq9zh+PJlYLqEMkS/jLQxhksPNmUGNBHfa4G+tQmnIhzpctxmchETtVGyBOvXgOVVpYuE40+eS4cUnwQ=="
},
"@actions/exec": {
"version": "1.1.0",

View file

@ -25,7 +25,7 @@
"license": "MIT",
"dependencies": {
"@actions/cache": "1.0.7",
"@actions/core": "1.4.0",
"@actions/core": "1.5.0",
"@actions/exec": "1.1.0",
"@actions/github": "5.0.0",
"@actions/glob": "0.2.0",

View file

@ -29,6 +29,7 @@ export async function run(): Promise<void> {
if (result.buildScanUrl) {
core.setOutput('build-scan-url', result.buildScanUrl)
core.notice(`Gradle build scan: ${result.buildScanUrl}`)
}
if (result.status !== 0) {