Dont fail the action if optional files are not present on the dics (#162)

This commit is contained in:
Ivan Milisavljevic
2022-12-07 03:19:47 +01:00
committed by GitHub
parent 974d2d7566
commit b9dc4464a6
2 changed files with 4 additions and 7 deletions

File diff suppressed because one or more lines are too long

View File

@@ -54,18 +54,15 @@ export async function run() {
const validatedReleaseFiles: string[] = await validateReleaseFiles(releaseFiles ?? [releaseFile])
if (whatsNewDir != undefined && whatsNewDir.length > 0 && !fs.existsSync(whatsNewDir)) {
core.setFailed(`Unable to find 'whatsnew' directory @ ${whatsNewDir}`);
return
core.warning(`Unable to find 'whatsnew' directory @ ${whatsNewDir}`);
}
if (mappingFile != undefined && mappingFile.length > 0 && !fs.existsSync(mappingFile)) {
core.setFailed(`Unable to find 'mappingFile' @ ${mappingFile}`);
return
core.warning(`Unable to find 'mappingFile' @ ${mappingFile}`);
}
if (debugSymbols != undefined && debugSymbols.length > 0 && !fs.existsSync(debugSymbols)) {
core.setFailed(`Unable to find 'debugSymbols' @ ${debugSymbols}`);
return
core.warning(`Unable to find 'debugSymbols' @ ${debugSymbols}`);
}
await runUpload(