From 16629f7a46e4ac51fda79f727e5169b1efcac082 Mon Sep 17 00:00:00 2001 From: ibrahim0814 Date: Tue, 12 Nov 2019 23:47:00 -0800 Subject: [PATCH] try turning token to string --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 7dcc5cf..dfb6557 100644 --- a/index.js +++ b/index.js @@ -10,7 +10,7 @@ try { const name = core.getInput('name'); console.log(`Name: ${name}`); - const token = core.getInput('token'); + let token = core.getInput('token'); console.log(`Token: ${token}`); const flags = core.getInput('flags'); @@ -28,7 +28,7 @@ try { //console.log('error:', error); //console.log('statusCode:', response && response.statusCode); //console.log('body:', body); - + token = token.toString() execSh([`export CODECOV_TOKEN=${token}`, body], true, (err, stdout, stderr)=>{ //console.log("error: ", err);