This commit is contained in:
Tom Hu 2021-07-07 17:43:44 -07:00
parent ef56160684
commit 1c3c14b66e
No known key found for this signature in database
GPG key ID: F7E832BD316D5603
2 changed files with 21 additions and 27 deletions

View file

@ -18,25 +18,22 @@ try {
'Codecov: Could not properly download uploader binary: ' +
`${err.message}`,
);
return;
}
fs.writeFileSync(filename, body);
fs.chmodSync(filename, '777');
if (fs.existsSync(filename)) {
console.log('file exists');
} else {
console.log('file does not exist');
}
console.log(fs.statSync(filename));
childProcess.execFile(filename, (err) => {
if (err) {
core.setFailed(
'Codecov: Failed to properly upload: ' +
`${err.message}`,
);
}
try {
childProcess.execFileSync(filename);
console.log('finished!');
});
} catch (err) {
core.setFailed(
'Codecov: Failed to properly upload: ' +
`${err.message}`,
);
return;
};
});
} catch (err) {
core.setFailed(