mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-09 20:47:26 +00:00
try executing only body
This commit is contained in:
parent
16629f7a46
commit
f5815c806d
1 changed files with 10 additions and 2 deletions
12
index.js
12
index.js
|
|
@ -28,15 +28,23 @@ try {
|
|||
//console.log('error:', error);
|
||||
//console.log('statusCode:', response && response.statusCode);
|
||||
//console.log('body:', body);
|
||||
token = token.toString()
|
||||
// token = token.toString()
|
||||
|
||||
execSh([`export CODECOV_TOKEN=${token}`, body], true, (err, stdout, stderr)=>{
|
||||
// execSh([`export CODECOV_TOKEN=${token}`, body], true, (err, stdout, stderr)=>{
|
||||
// //console.log("error: ", err);
|
||||
// console.log("stdout: ", stdout);
|
||||
// //console.log("stderr: ", stderr);
|
||||
|
||||
// })
|
||||
|
||||
execSh(body, true, (err, stdout, stderr)=>{
|
||||
//console.log("error: ", err);
|
||||
console.log("stdout: ", stdout);
|
||||
//console.log("stderr: ", stderr);
|
||||
|
||||
})
|
||||
|
||||
|
||||
// const command = `bash ${body}`
|
||||
// //const command = `bash ${body} -t ${token} -n ${name} -F ${flags} -f ${file}`
|
||||
// exec(command, (err, stdout, stderr) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue