Skip to content

Commit 143333b

Browse files
authored
Merge pull request #67 from alex/patch-1
Fixes #66 -- include the current env when invoking the subprocess
2 parents a50851c + d1b4c72 commit 143333b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ try {
4949
}
5050
};
5151

52-
options.env = {
52+
options.env = Object.assign(process.env, {
5353
GITHUB_ACTION: process.env.GITHUB_ACTION,
5454
GITHUB_RUN_ID: process.env.GITHUB_RUN_ID,
5555
GITHUB_REF: process.env.GITHUB_REF,
5656
GITHUB_REPOSITORY: process.env.GITHUB_REPOSITORY,
5757
GITHUB_SHA: process.env.GITHUB_SHA,
5858
GITHUB_HEAD_REF: process.env.GITHUB_HEAD_REF || ''
59-
};
59+
});
6060

6161
if(token){
6262
options.env.CODECOV_TOKEN = token

0 commit comments

Comments
 (0)