Changing paths and variable typo

This commit is contained in:
Tim Heuer committed 2019-12-14 13:35:30 -08:00
1 parent 22c8c92cdf
commit c141b6062f
2 files changed
+4 -24

No files matched your search

+2 -21
View File
@@ -54,11 +54,10 @@ module.exports = require("os");
/***/ (function(__unusedmodule, __unusedexports, __webpack_require__) {
const core = __webpack_require__(470);
const wait = __webpack_require__(949);
const fs = __webpack_require__(747);
// get input parameter values from config
var fileName = env['TEMP'] + '\\'+ core.getInput('fileName');
var fileName = core.getInput('fileName');
var encodedString = core.getInput('encodedString');
// most @actions toolkit packages have async methods
@@ -66,7 +65,7 @@ async function run() {
try {
const tempFile = Buffer.from(encodedString, 'base64');
if (certificate.length == 0)
if (tempFile.length == 0)
core.setFailed('Certificate value is not set');
await fs.writeFile(fileName, tempFile);
@@ -352,24 +351,6 @@ module.exports = require("path");
module.exports = require("fs");
/***/ }),
/***/ 949:
/***/ (function(module) {
let wait = function(milliseconds) {
return new Promise((resolve, reject) => {
if (typeof(milliseconds) !== 'number') {
throw new Error('milleseconds not a number');
}
setTimeout(() => resolve("done!"), milliseconds)
});
}
module.exports = wait;
/***/ })
/******/ });
+2 -3
View File
@@ -1,9 +1,8 @@
const core = require('@actions/core');
const wait = require('./wait');
const fs = require('fs');
// get input parameter values from config
var fileName = env['TEMP'] + '\\'+ core.getInput('fileName');
var fileName = core.getInput('fileName');
var encodedString = core.getInput('encodedString');
// most @actions toolkit packages have async methods
@@ -11,7 +10,7 @@ async function run() {
try {
const tempFile = Buffer.from(encodedString, 'base64');
if (certificate.length == 0)
if (tempFile.length == 0)
core.setFailed('Certificate value is not set');
await fs.writeFile(fileName, tempFile);