Fixed precondition checks for whatsnew and mapping files, to fix issues outlined in #2
This commit is contained in:
@@ -48,11 +48,11 @@ function run() {
|
||||
core.setFailed(`Unable to find release file @ ${releaseFile}`);
|
||||
return;
|
||||
}
|
||||
if (whatsNewDir != undefined && !fs.existsSync(whatsNewDir)) {
|
||||
if (whatsNewDir != undefined && whatsNewDir.length > 0 && !fs.existsSync(whatsNewDir)) {
|
||||
core.setFailed(`Unable to find 'whatsnew' directory @ ${whatsNewDir}`);
|
||||
return;
|
||||
}
|
||||
if (mappingFile != undefined && !fs.existsSync(mappingFile)) {
|
||||
if (mappingFile != undefined && mappingFile.length > 0 && !fs.existsSync(mappingFile)) {
|
||||
core.setFailed(`Unable to find 'mappingFile' @ ${mappingFile}`);
|
||||
return;
|
||||
}
|
||||
@@ -67,7 +67,7 @@ function run() {
|
||||
whatsNewDir: whatsNewDir,
|
||||
mappingFile: mappingFile
|
||||
}, releaseFile);
|
||||
core.debug('Finished App Release!');
|
||||
console.log(`Finished uploading ${releaseFile} to the Play Store`);
|
||||
}
|
||||
catch (error) {
|
||||
core.setFailed(error.message);
|
||||
|
||||
Reference in New Issue
Block a user