Skip to content

Commit

Permalink
Fix environ for download-enmon running in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
blavka committed Aug 29, 2022
1 parent fc6ba37 commit d152042
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions download-enmon.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ const headers = {
'User-Agent': 'Mozilla/5.0',
};

if (process.env.GITHUB_KEY) {
if (process.env.TOKEN_GITHUB) {
console.log('Add Authorization');
headers['Authorization'] = `token ${process.env.GITHUB_KEY}`;
headers['Authorization'] = `token ${process.env.TOKEN_GITHUB}`;
}

if (!fs.existsSync('bin')) {
Expand Down

0 comments on commit d152042

Please sign in to comment.