Again
This commit is contained in:
5
dist/index.js
vendored
5
dist/index.js
vendored
@@ -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);
|
||||
}
|
||||
|
||||
5
index.js
5
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user