Dont fail the action if optional files are not present on the dics (#162)
This commit is contained in:
committed by
GitHub
parent
974d2d7566
commit
b9dc4464a6
File diff suppressed because one or more lines are too long
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user