Skip to content

Commit c7275a7

Browse files
committed
Don't re-retrieve GitHub version when already have it
54e0c67#r45693026 54e0c67#r45693030
1 parent 023add5 commit c7275a7

6 files changed

Lines changed: 6 additions & 10 deletions

File tree

lib/analyze-action.js

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/analyze-action.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/runner.js

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/runner.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/analyze-action.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ async function run() {
8484
);
8585

8686
if (actionsUtil.getRequiredInput("upload") === "true") {
87-
const gitHubVersion = await util.getGitHubVersion(apiDetails);
8887
const uploadStats = await upload_lib.uploadFromActions(
8988
outputDir,
9089
parseRepositoryNwo(
@@ -97,7 +96,7 @@ async function run() {
9796
actionsUtil.getWorkflowRunID(),
9897
actionsUtil.getRequiredInput("checkout_path"),
9998
actionsUtil.getRequiredInput("matrix"),
100-
gitHubVersion,
99+
config.gitHubVersion,
101100
apiDetails,
102101
logger
103102
);

src/runner.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,14 +392,13 @@ program
392392
return;
393393
}
394394

395-
const gitHubVersion = await getGitHubVersion(apiDetails);
396395
await upload_lib.uploadFromRunner(
397396
outputDir,
398397
parseRepositoryNwo(cmd.repository),
399398
cmd.commit,
400399
parseRef(cmd.ref),
401400
cmd.checkoutPath || process.cwd(),
402-
gitHubVersion,
401+
config.gitHubVersion,
403402
apiDetails,
404403
logger
405404
);

0 commit comments

Comments
 (0)