Skip to content

Commit

Permalink
Merge pull request #67 from alex/patch-1
Browse files Browse the repository at this point in the history
Fixes #66 -- include the current env when invoking the subprocess
  • Loading branch information
thomasrockhu authored May 6, 2020
2 parents a50851c + d1b4c72 commit 143333b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ try {
}
};

options.env = {
options.env = Object.assign(process.env, {
GITHUB_ACTION: process.env.GITHUB_ACTION,
GITHUB_RUN_ID: process.env.GITHUB_RUN_ID,
GITHUB_REF: process.env.GITHUB_REF,
GITHUB_REPOSITORY: process.env.GITHUB_REPOSITORY,
GITHUB_SHA: process.env.GITHUB_SHA,
GITHUB_HEAD_REF: process.env.GITHUB_HEAD_REF || ''
};
});

if(token){
options.env.CODECOV_TOKEN = token
Expand Down

0 comments on commit 143333b

Please sign in to comment.