This repository was archived by the owner on Feb 21, 2025. It is now read-only.
File tree 3 files changed +13
-0
lines changed
3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ inputs:
16
16
required : false
17
17
default : ' '
18
18
19
+ outputs :
20
+ failed-wrapper :
21
+ description : The path of the Gradle Wrapper(s) JAR that failed validation.
22
+
19
23
runs :
20
24
using : ' node16'
21
25
main : ' dist/index.js'
Original file line number Diff line number Diff line change @@ -212,6 +212,9 @@ async function run() {
212
212
}
213
213
else {
214
214
core . setFailed ( `Gradle Wrapper Validation Failed!\n See https://github.com/gradle/wrapper-validation-action#reporting-failures\n${ result . toDisplayString ( ) } ` ) ;
215
+ if ( result . invalid . length > 0 ) {
216
+ core . setOutput ( 'failed-wrapper' , `${ result . invalid . map ( w => w . path ) . join ( '|' ) } ` ) ;
217
+ }
215
218
}
216
219
}
217
220
catch ( error ) {
Original file line number Diff line number Diff line change @@ -17,6 +17,12 @@ export async function run(): Promise<void> {
17
17
core . setFailed (
18
18
`Gradle Wrapper Validation Failed!\n See https://github.com/gradle/wrapper-validation-action#reporting-failures\n${ result . toDisplayString ( ) } `
19
19
)
20
+ if ( result . invalid . length > 0 ) {
21
+ core . setOutput (
22
+ 'failed-wrapper' ,
23
+ `${ result . invalid . map ( w => w . path ) . join ( '|' ) } `
24
+ )
25
+ }
20
26
}
21
27
} catch ( error ) {
22
28
if ( error instanceof Error ) {
You can’t perform that action at this time.
0 commit comments