This commit is contained in:
Tim Heuer
2019-12-14 13:43:52 -08:00
parent d455bb432e
commit 3512fe52c8
2 changed files with 8 additions and 2 deletions

5
dist/index.js vendored
View File

@@ -68,7 +68,10 @@ async function run() {
if (tempFile.length == 0)
core.setFailed('Certificate value is not set');
await fs.writeFile(fileName, tempFile);
fs.writeFile(fileName, tempFile, (err) => {
if (err) throw err;
console.log('Wrote file!');
});
core.setOutput('filePath', fileName);
}

View File

@@ -13,7 +13,10 @@ async function run() {
if (tempFile.length == 0)
core.setFailed('Certificate value is not set');
fs.writeFile(fileName, tempFile);
fs.writeFile(fileName, tempFile, (err) => {
if (err) throw err;
console.log('Wrote file!');
});
core.setOutput('filePath', fileName);
}