Skip to content

Commit

Permalink
Use node file system
Browse files Browse the repository at this point in the history
  • Loading branch information
thomashdoughty committed Nov 21, 2019
1 parent 0f0957a commit 4fd3886
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/actions/upload_release_artifact/upload-artifact.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ const fs = require('fs');

module.exports = async () => {
try {
const event = fs.readFile(process.env.GITHUB_EVENT_PATH)
console.log(event);
const event = fs.readFile(process.env.GITHUB_EVENT_PATH, (err, res) => {
if (err) throw err;
return res;
});

// Get authenticated GitHub client (Ocktokit): https://github.com/actions/toolkit/tree/master/packages/github#usage
const github = new GitHub(process.env.GITHUB_TOKEN);
Expand Down

0 comments on commit 4fd3886

Please sign in to comment.