From c44ebadf6fc32d200e59908887e6eca095886e05 Mon Sep 17 00:00:00 2001 From: Daz DeBoer Date: Sun, 5 Sep 2021 19:15:31 -0600 Subject: [PATCH] Add build scan link as a notice annotation - Use 'notice' method introduced in @actions/core v1.5.0 --- package-lock.json | 6 +++--- package.json | 2 +- src/main.ts | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index ef283cc..a679922 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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", diff --git a/package.json b/package.json index 3ecb2ed..4677fb8 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/main.ts b/src/main.ts index 83a355f..0f06865 100644 --- a/src/main.ts +++ b/src/main.ts @@ -29,6 +29,7 @@ export async function run(): Promise { if (result.buildScanUrl) { core.setOutput('build-scan-url', result.buildScanUrl) + core.notice(`Gradle build scan: ${result.buildScanUrl}`) } if (result.status !== 0) {