Skip to content

Commit

Permalink
Merge branch 'releases/v2' of https://github.com/JamesIves/fetch-api-…
Browse files Browse the repository at this point in the history
…data-action into releases/v2
  • Loading branch information
JamesIves committed Aug 29, 2023
2 parents 7eab10e + 87cc854 commit 6496072
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -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! ✅ 🚚'}`);
}
});
}
Expand Down

0 comments on commit 6496072

Please sign in to comment.