From 6fd09f835d01a9d33a4b1a4c7eca16482c2b7a60 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sat, 21 Mar 2020 20:47:04 -0400 Subject: [PATCH 1/2] Fixes #66 -- include the current env when invoking the subprocess --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d0de5373a..cf23cf9f4 100644 --- a/index.js +++ b/index.js @@ -49,7 +49,7 @@ 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, From d1b4c72fc528188ec2a5243320009197ff7eebe4 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sat, 21 Mar 2020 20:47:24 -0400 Subject: [PATCH 2/2] Update index.js --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index cf23cf9f4..46e940445 100644 --- a/index.js +++ b/index.js @@ -56,7 +56,7 @@ try { 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