You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
? 'Wrapper validation failed: no Gradle Wrapper jars found. Did you forget to checkout the repository?'
32
+
: `Wrapper validation failed: expected at least ${minWrapperCount} Gradle Wrapper jars, but found ${result.valid.length}.`
33
+
core.setFailed(message)
34
+
}
27
35
}else{
28
36
core.setFailed(
29
-
`Gradle Wrapper Validation Failed!\n See https://github.com/gradle/actions/blob/main/docs/wrapper-validation.md#reporting-failures\n${result.toDisplayString()}`
37
+
`At least one Gradle Wrapper Jar failed validation!\n See https://github.com/gradle/actions/blob/main/docs/wrapper-validation.md#validation-failures\n${result.toDisplayString()}`
Copy file name to clipboardExpand all lines: sources/src/wrapper-validation/wrapper-validator.ts
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -20,20 +20,19 @@ export async function validateWrappers(
20
20
21
21
constresult=awaitfindInvalidWrapperJars(
22
22
workspaceRoot,
23
-
0,
24
23
config.allowSnapshotWrappers(),
25
24
allowedChecksums,
26
25
previouslyValidatedChecksums
27
26
)
28
27
if(result.isValid()){
29
28
awaitcore.group('All Gradle Wrapper jars are valid',async()=>{
30
-
core.info(`Loaded previously validated checksums from cache: ${previouslyValidatedChecksums.join(', ')}`)
29
+
core.debug(`Loaded previously validated checksums from cache: ${previouslyValidatedChecksums.join(', ')}`)
31
30
core.info(result.toDisplayString())
32
31
})
33
32
}else{
34
33
core.info(result.toDisplayString())
35
34
thrownewJobFailure(
36
-
`Gradle Wrapper Validation Failed!\n See https://github.com/gradle/actions/blob/main/docs/wrapper-validation.md#validation-failures\n${result.toDisplayString()}`
35
+
`At least one Gradle Wrapper Jar failed validation!\n See https://github.com/gradle/actions/blob/main/docs/wrapper-validation.md#validation-failures\n${result.toDisplayString()}`
0 commit comments