This repository was archived by the owner on Feb 21, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ inputs:
1616 required : false
1717 default : ' '
1818
19+ outputs :
20+ failed-wrapper :
21+ description : The path of the Gradle Wrapper(s) JAR that failed validation.
22+
1923runs :
2024 using : ' node16'
2125 main : ' dist/index.js'
Original file line number Diff line number Diff line change @@ -212,6 +212,9 @@ async function run() {
212212 }
213213 else {
214214 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+ }
215218 }
216219 }
217220 catch ( error ) {
Original file line number Diff line number Diff line change @@ -17,6 +17,12 @@ export async function run(): Promise<void> {
1717 core . setFailed (
1818 `Gradle Wrapper Validation Failed!\n See https://github.com/gradle/wrapper-validation-action#reporting-failures\n${ result . toDisplayString ( ) } `
1919 )
20+ if ( result . invalid . length > 0 ) {
21+ core . setOutput (
22+ 'failed-wrapper' ,
23+ `${ result . invalid . map ( w => w . path ) . join ( '|' ) } `
24+ )
25+ }
2026 }
2127 } catch ( error ) {
2228 if ( error instanceof Error ) {
You can’t perform that action at this time.
0 commit comments