apply the syntax

This commit is contained in:
yimysty
2022-08-04 17:04:26 -07:00
parent 35e615a00c
commit 7f629c4ce0
6 changed files with 5 additions and 8 deletions

View File

@@ -10,7 +10,6 @@ function getRequiredVars() {
buildVersion: process.env.GITHUB_SHA,
buildActor: process.env.GITHUB_ACTOR,
actionsId: process.env.GITHUB_ACTION,
githubApiUrl: process.env.GITHUB_API_URL ?? `https://api.github.com`,
githubToken: core.getInput('token'),
}
}

View File

@@ -25,7 +25,7 @@ class Deployment {
this.workflowRun = context.workflowRun
this.requestedDeployment = false
this.deploymentInfo = null
this.githubApiUrl = context.githubApiUrl
this.githubApiUrl = process.env.GITHUB_API_URL ? process.env.GITHUB_API_URL : "https://api.github.com",
this.artifactName = core.getInput('artifact_name')
}