Skip to content

Commit 3512fe5

Browse files
committed
Again
1 parent d455bb4 commit 3512fe5

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

dist/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ async function run() {
6868
if (tempFile.length == 0)
6969
core.setFailed('Certificate value is not set');
7070

71-
await fs.writeFile(fileName, tempFile);
71+
fs.writeFile(fileName, tempFile, (err) => {
72+
if (err) throw err;
73+
console.log('Wrote file!');
74+
});
7275

7376
core.setOutput('filePath', fileName);
7477
}

index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ async function run() {
1313
if (tempFile.length == 0)
1414
core.setFailed('Certificate value is not set');
1515

16-
fs.writeFile(fileName, tempFile);
16+
fs.writeFile(fileName, tempFile, (err) => {
17+
if (err) throw err;
18+
console.log('Wrote file!');
19+
});
1720

1821
core.setOutput('filePath', fileName);
1922
}

0 commit comments

Comments
 (0)