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])
|
const validatedReleaseFiles: string[] = await validateReleaseFiles(releaseFiles ?? [releaseFile])
|
||||||
|
|
||||||
if (whatsNewDir != undefined && whatsNewDir.length > 0 && !fs.existsSync(whatsNewDir)) {
|
if (whatsNewDir != undefined && whatsNewDir.length > 0 && !fs.existsSync(whatsNewDir)) {
|
||||||
core.setFailed(`Unable to find 'whatsnew' directory @ ${whatsNewDir}`);
|
core.warning(`Unable to find 'whatsnew' directory @ ${whatsNewDir}`);
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mappingFile != undefined && mappingFile.length > 0 && !fs.existsSync(mappingFile)) {
|
if (mappingFile != undefined && mappingFile.length > 0 && !fs.existsSync(mappingFile)) {
|
||||||
core.setFailed(`Unable to find 'mappingFile' @ ${mappingFile}`);
|
core.warning(`Unable to find 'mappingFile' @ ${mappingFile}`);
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (debugSymbols != undefined && debugSymbols.length > 0 && !fs.existsSync(debugSymbols)) {
|
if (debugSymbols != undefined && debugSymbols.length > 0 && !fs.existsSync(debugSymbols)) {
|
||||||
core.setFailed(`Unable to find 'debugSymbols' @ ${debugSymbols}`);
|
core.warning(`Unable to find 'debugSymbols' @ ${debugSymbols}`);
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
await runUpload(
|
await runUpload(
|
||||||
|
|||||||
Reference in New Issue
Block a user