Skip to content

Commit eb5f75b

Browse files
committed
chore: update upload flags script
1 parent 112b684 commit eb5f75b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

scripts/codecov-upload-flags.mjs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ const download = async (url, dst) => {
2222
};
2323

2424
const TOP = process.cwd();
25-
// const TEMP = os.tmpdir();
26-
2725
const pkgInfo = readPkg(TOP);
2826
const pkgFiles = pkgInfo.workspaces.map((exp) => globSync(path.join(exp, 'package.json')));
2927
const codecovPath = path.resolve(TOP, 'codecov');
@@ -33,7 +31,7 @@ const pkgsWithFlag = pkgFiles.flat().map((f) => {
3331
const name = info.name;
3432
const flag = name.replace('@opentelemetry/', '');
3533
const report = path + 'coverage/coverage-final.json';
36-
const command = `${codecovPath} do-upload -t <token> -f ${report} --disable-search -F ${flag} -d`;
34+
const command = `./codecov do-upload -t <token> -f ${report} --disable-search -F ${flag} -d`;
3735
return { name, flag, len: flag.length, path, report, command };
3836
});
3937

@@ -72,7 +70,6 @@ for (const pkg of pkgsWithFlag) {
7270
if (existsSync(pkg.report)) {
7371
const command = pkg.command.replace('<token>', token)
7472
console.log(`Uploading report of ${pkg.name} with flag ${pkg.flag}`);
75-
console.log(`Command: ${command}`);
7673
execSync(command, {cwd: TOP, encoding: 'utf-8'});
7774
} else {
7875
console.log(`Report of ${pkg.name} not found. Expected existence of ${pkg.report}`);

0 commit comments

Comments
 (0)