this is js not python

This commit is contained in:
Tom Hu 2021-07-07 17:23:38 -07:00
parent 753d7ea0a6
commit 0265d84c48
No known key found for this signature in database
GPG key ID: F7E832BD316D5603
2 changed files with 30 additions and 31 deletions

10
dist/index.js vendored
View file

@ -34542,8 +34542,11 @@ var request = __nccwpck_require__(8699);
// const {failCi} = buildExec();
try {
var filename_1 = __dirname + '/uploader';
request.get('https://uploader.codecov.io/latest/codecov-linux')
.end(function (res) {
request.get('https://uploader.codecov.io/latest/codecov-linux', function (err, res, body) {
if (err || !res.ok) {
core.setFailed('Codecov: Could not properly download uploader binary: ' +
("" + err.message));
}
fs.writeFileSync(res.body, filename_1);
fs.chmodSync(filename_1, '777');
if (fs.existsSync(filename_1)) {
@ -34559,9 +34562,6 @@ try {
.then(function () {
console.log('finished!');
});
})["catch"](function (err) {
core.setFailed('Codecov: Could not properly download uploader binary: ' +
("" + err.message));
});
}
catch (err) {