From 3512fe52c8a2254c73e7b32e191d0b10511ae8c6 Mon Sep 17 00:00:00 2001 From: Tim Heuer Date: Sat, 14 Dec 2019 13:43:52 -0800 Subject: [PATCH] Again --- dist/index.js | 5 ++++- index.js | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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); }