mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-14 23:17:25 +00:00
fix logic
This commit is contained in:
parent
67a2282699
commit
6afe2e0d90
1 changed files with 4 additions and 4 deletions
6
index.js
6
index.js
|
|
@ -41,10 +41,10 @@ try {
|
||||||
GITHUB_SHA: process.env.GITHUB_SHA
|
GITHUB_SHA: process.env.GITHUB_SHA
|
||||||
};
|
};
|
||||||
|
|
||||||
if (file === '' ){
|
if (file){
|
||||||
exec.exec('bash', ['codecov.sh', '-f', `${file}`, '-n', `${name}`, '-F', `${flags}`, ], options);
|
exec.exec('bash', ['codecov.sh', '-f', `${file}`, '-n', `${name}`, '-F', `${flags}`], options);
|
||||||
}else{
|
}else{
|
||||||
exec.exec('bash', ['codecov.sh', `${name}`, '-F', `${flags}`, ], options);
|
exec.exec('bash', ['codecov.sh','-n', `${name}`, '-F', `${flags}`], options);
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue