diff --git a/lib/fetch.js b/lib/fetch.js index 8e8d5b9eb..028de60c0 100644 --- a/lib/fetch.js +++ b/lib/fetch.js @@ -72,7 +72,8 @@ function generateExport({ data, encoding, format, saveLocation, saveName, setOut yield fs_1.promises.writeFile(file, data, dataEncoding); (0, core_1.info)(`Saved ${file} 💾`); if (setOutput) { - (0, core_1.exportVariable)('fetch-api-data', data); + (0, core_1.exportVariable)('fetchApiData', data); + (0, core_1.setOutput)('fetchApiData', data); } return constants_1.Status.SUCCESS; } diff --git a/lib/lib.js b/lib/lib.js index 7827f5e99..e72901d85 100644 --- a/lib/lib.js +++ b/lib/lib.js @@ -69,7 +69,7 @@ function run(configuration) { finally { (0, core_1.info)(`${status === constants_1.Status.FAILED ? 'There was an error fetching the data. ❌' - : 'The data was succesfully retrieved and saved! ✅ 🚚'}`); + : 'The data was successfully retrieved and saved! ✅ 🚚'}`); } }); }