Make anonymous objects into variables for readability
This commit is contained in:
parent
ab9b1a72db
commit
3ee4739b13
15 changed files with 75 additions and 72 deletions
|
|
@ -64,6 +64,10 @@ async function run() {
|
|||
"Config file could not be found at expected location. Has the 'init' action been called?"
|
||||
);
|
||||
}
|
||||
const apiDetails = {
|
||||
auth: actionsUtil.getRequiredInput("token"),
|
||||
url: actionsUtil.getRequiredEnvParam("GITHUB_SERVER_URL"),
|
||||
};
|
||||
stats = await runAnalyze(
|
||||
parseRepositoryNwo(actionsUtil.getRequiredEnvParam("GITHUB_REPOSITORY")),
|
||||
await actionsUtil.getCommitOid(),
|
||||
|
|
@ -73,10 +77,7 @@ async function run() {
|
|||
actionsUtil.getWorkflowRunID(),
|
||||
actionsUtil.getRequiredInput("checkout_path"),
|
||||
actionsUtil.getRequiredInput("matrix"),
|
||||
{
|
||||
auth: actionsUtil.getRequiredInput("token"),
|
||||
url: actionsUtil.getRequiredEnvParam("GITHUB_SERVER_URL"),
|
||||
},
|
||||
apiDetails,
|
||||
actionsUtil.getRequiredInput("upload") === "true",
|
||||
"actions",
|
||||
actionsUtil.getRequiredInput("output"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue