mirror of
https://github.com/gradle/gradle-build-action.git
synced 2025-06-06 16:26:12 +02:00
capture build scan url on failed build
This commit is contained in:
parent
091093ee61
commit
0a56b592f2
2 changed files with 17 additions and 11 deletions
|
@ -8,7 +8,7 @@ import * as provision from "./provision";
|
|||
|
||||
|
||||
// Invoked by Github Actions
|
||||
async function run() {
|
||||
export async function run() {
|
||||
try {
|
||||
|
||||
const baseDirectory = process.env[`GITHUB_WORKSPACE`] || "";
|
||||
|
@ -19,10 +19,14 @@ async function run() {
|
|||
parseCommandLineArguments()
|
||||
);
|
||||
|
||||
if (result.buildScanUrl != null) {
|
||||
if (result.buildScanUrl) {
|
||||
core.setOutput("build-scan-url", result.buildScanUrl);
|
||||
}
|
||||
|
||||
if (result.status != 0) {
|
||||
core.setFailed(`Gradle process exited with status ${result.status}`)
|
||||
}
|
||||
|
||||
} catch (error) {
|
||||
core.setFailed(error.message);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue