mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-08 03:57:26 +00:00
fix logic
This commit is contained in:
parent
67a2282699
commit
6afe2e0d90
1 changed files with 4 additions and 4 deletions
8
index.js
8
index.js
|
|
@ -32,7 +32,7 @@ try {
|
|||
myError += data.toString();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
options.env = {
|
||||
CODECOV_TOKEN: `${token}`,
|
||||
GITHUB_ACTION: process.env.GITHUB_ACTION,
|
||||
|
|
@ -41,10 +41,10 @@ try {
|
|||
GITHUB_SHA: process.env.GITHUB_SHA
|
||||
};
|
||||
|
||||
if (file === '' ){
|
||||
exec.exec('bash', ['codecov.sh', '-f', `${file}`, '-n', `${name}`, '-F', `${flags}`, ], options);
|
||||
if (file){
|
||||
exec.exec('bash', ['codecov.sh', '-f', `${file}`, '-n', `${name}`, '-F', `${flags}`], options);
|
||||
}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