diff --git a/.github/actions/get-metadata/dist/index.js b/.github/actions/get-metadata/dist/index.js index 5fa2f519..f2e70a1d 100644 --- a/.github/actions/get-metadata/dist/index.js +++ b/.github/actions/get-metadata/dist/index.js @@ -28828,6 +28828,7 @@ sourceFiles.forEach((fileName) => { } else { console.log(`ERROR: ${fileName}`); + (0, core_1.setFailed)(`Error parsing metadata for ${fileName}`); } }); fs_extra_1.default.writeFileSync(outFile, JSON.stringify(allMetadata.sort((a, b) => a.name.localeCompare(b.name)))); diff --git a/.github/actions/get-metadata/src/index.ts b/.github/actions/get-metadata/src/index.ts index 23dafb02..c175fac9 100644 --- a/.github/actions/get-metadata/src/index.ts +++ b/.github/actions/get-metadata/src/index.ts @@ -1,6 +1,6 @@ import path from 'path' -import { getInput } from '@actions/core' +import { getInput, setFailed } from '@actions/core' import fs from 'fs-extra' import { parseMetadata } from './parse' @@ -21,6 +21,7 @@ sourceFiles.forEach((fileName: string) => { allMetadata.push(parsed) } else { console.log(`ERROR: ${fileName}`) + setFailed(`Error parsing metadata for ${fileName}`); } })