mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-14 23:17:25 +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('error:', error);
|
||||||
//console.log('statusCode:', response && response.statusCode);
|
//console.log('statusCode:', response && response.statusCode);
|
||||||
//console.log('body:', body);
|
//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("error: ", err);
|
||||||
console.log("stdout: ", stdout);
|
console.log("stdout: ", stdout);
|
||||||
//console.log("stderr: ", stderr);
|
//console.log("stderr: ", stderr);
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
// const command = `bash ${body}`
|
// const command = `bash ${body}`
|
||||||
// //const command = `bash ${body} -t ${token} -n ${name} -F ${flags} -f ${file}`
|
// //const command = `bash ${body} -t ${token} -n ${name} -F ${flags} -f ${file}`
|
||||||
// exec(command, (err, stdout, stderr) => {
|
// exec(command, (err, stdout, stderr) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue