Allow specifying version of Codecov uploader

This commit is contained in:
Tom Hu
2021-09-09 13:15:02 -04:00
parent f6d4366a4c
commit 72dfd4782e
14 changed files with 170 additions and 35 deletions

View File

@@ -43,8 +43,8 @@ const getPlatform = (os?: string): string => {
return 'linux';
};
const getBaseUrl = (platform: string): string => {
return `https://uploader.codecov.io/latest/${platform}/${getUploaderName(platform)}`;
const getBaseUrl = (platform: string, version: string): string => {
return `https://uploader.codecov.io/${version}/${platform}/${getUploaderName(platform)}`;
};
export {