File tree 2 files changed +3
-1
lines changed
.github/actions/get-metadata
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -28828,6 +28828,7 @@ sourceFiles.forEach((fileName) => {
28828
28828
}
28829
28829
else {
28830
28830
console.log(`ERROR: ${fileName}`);
28831
+ (0, core_1.setFailed)(`Error parsing metadata for ${fileName}`);
28831
28832
}
28832
28833
});
28833
28834
fs_extra_1.default.writeFileSync(outFile, JSON.stringify(allMetadata.sort((a, b) => a.name.localeCompare(b.name))));
Original file line number Diff line number Diff line change 1
1
import path from 'path'
2
2
3
- import { getInput } from '@actions/core'
3
+ import { getInput , setFailed } from '@actions/core'
4
4
import fs from 'fs-extra'
5
5
import { parseMetadata } from './parse'
6
6
@@ -21,6 +21,7 @@ sourceFiles.forEach((fileName: string) => {
21
21
allMetadata . push ( parsed )
22
22
} else {
23
23
console . log ( `ERROR: ${ fileName } ` )
24
+ setFailed ( `Error parsing metadata for ${ fileName } ` ) ;
24
25
}
25
26
} )
26
27
You can’t perform that action at this time.
0 commit comments