Don't re-retrieve GitHub version when already have it
54e0c67332 (r45693026)54e0c67332 (r45693030)
This commit is contained in:
parent
023add5df0
commit
c7275a75ce
6 changed files with 6 additions and 10 deletions
|
|
@ -84,7 +84,6 @@ async function run() {
|
|||
);
|
||||
|
||||
if (actionsUtil.getRequiredInput("upload") === "true") {
|
||||
const gitHubVersion = await util.getGitHubVersion(apiDetails);
|
||||
const uploadStats = await upload_lib.uploadFromActions(
|
||||
outputDir,
|
||||
parseRepositoryNwo(
|
||||
|
|
@ -97,7 +96,7 @@ async function run() {
|
|||
actionsUtil.getWorkflowRunID(),
|
||||
actionsUtil.getRequiredInput("checkout_path"),
|
||||
actionsUtil.getRequiredInput("matrix"),
|
||||
gitHubVersion,
|
||||
config.gitHubVersion,
|
||||
apiDetails,
|
||||
logger
|
||||
);
|
||||
|
|
|
|||
|
|
@ -392,14 +392,13 @@ program
|
|||
return;
|
||||
}
|
||||
|
||||
const gitHubVersion = await getGitHubVersion(apiDetails);
|
||||
await upload_lib.uploadFromRunner(
|
||||
outputDir,
|
||||
parseRepositoryNwo(cmd.repository),
|
||||
cmd.commit,
|
||||
parseRef(cmd.ref),
|
||||
cmd.checkoutPath || process.cwd(),
|
||||
gitHubVersion,
|
||||
config.gitHubVersion,
|
||||
apiDetails,
|
||||
logger
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue