mirror of
https://github.com/codecov/codecov-action.git
synced 2026-05-14 03:46:56 +00:00
fix logic
This commit is contained in:
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user