Let failure message link to how to report validation errors

Signed-off-by: Paul Merlin <paul@gradle.com>
This commit is contained in:
Paul Merlin 2020-01-16 10:07:36 +01:00
parent f783f98dff
commit 8cb3a6f68d
2 changed files with 4 additions and 2 deletions

2
dist/index.js vendored
View file

@ -345,7 +345,7 @@ function run() {
core.info(result.toDisplayString());
}
else {
core.setFailed(result.toDisplayString());
core.setFailed(`Gradle Wrapper Validation Failed!\n See https://github.com/gradle/wrapper-validation-action#reporting-failures\n${result.toDisplayString()}`);
}
}
catch (error) {

View file

@ -14,7 +14,9 @@ export async function run(): Promise<void> {
if (result.isValid()) {
core.info(result.toDisplayString())
} else {
core.setFailed(result.toDisplayString())
core.setFailed(
`Gradle Wrapper Validation Failed!\n See https://github.com/gradle/wrapper-validation-action#reporting-failures\n${result.toDisplayString()}`
)
}
} catch (error) {
core.setFailed(error.message)