diff --git a/dist/index.js b/dist/index.js index 2f51010..a75127f 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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); } diff --git a/index.js b/index.js index 655d571..e838758 100644 --- a/index.js +++ b/index.js @@ -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); }