roll into right node syntax

This commit is contained in:
yimysty
2022-08-04 17:09:46 -07:00
parent 06d025f427
commit 99f9079292
7 changed files with 15 additions and 14 deletions

6
dist/index.js vendored
View File

@@ -7058,6 +7058,8 @@ function getRequiredVars() {
buildActor: process.env.GITHUB_ACTOR,
actionsId: process.env.GITHUB_ACTION,
githubToken: core.getInput('token'),
githubApiUrl: process.env.GITHUB_API_URL ?? 'https://api.github.com',
artifactName: core.getInput('artifact_name') ?? 'github-pages'
}
}
@@ -7105,8 +7107,8 @@ class Deployment {
this.workflowRun = context.workflowRun
this.requestedDeployment = false
this.deploymentInfo = null
this.githubApiUrl = process.env.GITHUB_API_URL ? process.env.GITHUB_API_URL : "https://api.github.com",
this.artifactName = core.getInput('artifact_name')
this.githubApiUrl = context.githubApiUrl
this.artifactName = context.artifactName
}
// Ask the runtime for the unsigned artifact URL and deploy to GitHub Pages