Added cleanup to generated service account file (#116)
Co-authored-by: Drew Heavner <veedubusc@gmail.com>
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -121,7 +121,13 @@ async function run() {
|
||||
|
||||
console.log(`Finished uploading to the Play Store: ${result}`)
|
||||
} catch (error: any) {
|
||||
core.setFailed(error.toString())
|
||||
core.setFailed(error.message)
|
||||
} finally {
|
||||
if (core.getInput('serviceAccountJsonPlainText', { required: false})) {
|
||||
// Cleanup our auth file that we created.
|
||||
core.debug('Cleaning up service account json file');
|
||||
fs.unlinkSync('./serviceAccountJson.json');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user