mirror of
https://github.com/gradle/wrapper-validation-action
synced 2024-11-27 10:42:03 +00:00
Let failure message link to how to report validation errors
Signed-off-by: Paul Merlin <paul@gradle.com>
This commit is contained in:
parent
f783f98dff
commit
8cb3a6f68d
2 changed files with 4 additions and 2 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
|
@ -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) {
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue