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

@@ -37,8 +37,9 @@ const buildExec = () => {
const searchDir = core.getInput('directory');
const slug = core.getInput('slug');
const token = core.getInput('token');
const verbose = isTrue(core.getInput('verbose'));
let uploaderVersion = core.getInput('version');
const url = core.getInput('url');
const verbose = isTrue(core.getInput('verbose'));
const workingDir = core.getInput('working-directory');
const execArgs = [];
@@ -147,7 +148,11 @@ const buildExec = () => {
options.cwd = workingDir;
}
return {execArgs, options, failCi, os};
if (uploaderVersion == '') {
uploaderVersion = 'latest';
}
return {execArgs, options, failCi, os, uploaderVersion};
};
export default buildExec;