mirror of
https://github.com/codecov/codecov-action.git
synced 2026-04-18 20:02:34 +08:00
use cli instead of node uploader (#1068)
* use cli instead of node uploader * changes based on review * logging out run command
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
import * as core from '@actions/core';
|
||||
|
||||
const PLATFORMS = [
|
||||
'aarch64',
|
||||
'alpine',
|
||||
'linux',
|
||||
'macos',
|
||||
'windows',
|
||||
@@ -50,7 +48,17 @@ const getPlatform = (os?: string): string => {
|
||||
};
|
||||
|
||||
const getBaseUrl = (platform: string, version: string): string => {
|
||||
return `https://uploader.codecov.io/${version}/${platform}/${getUploaderName(platform)}`;
|
||||
return `https://cli.codecov.io/${version}/${platform}/${getUploaderName(platform)}`;
|
||||
};
|
||||
|
||||
const getCommand = (
|
||||
filename: string,
|
||||
generalArgs:string[],
|
||||
command: string,
|
||||
): string[] => {
|
||||
const fullCommand = [filename, ...generalArgs, command];
|
||||
core.info(`==> Running command '${fullCommand.join(' ')}'`);
|
||||
return fullCommand;
|
||||
};
|
||||
|
||||
export {
|
||||
@@ -61,4 +69,5 @@ export {
|
||||
isValidPlatform,
|
||||
isWindows,
|
||||
setFailure,
|
||||
getCommand,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user