Add support for preview deployments

This commit is contained in:
James M. Greene
2022-09-09 18:44:03 -05:00
parent ad109d8dbd
commit d2d7f752d5
2 changed files with 12 additions and 2 deletions

View File

@@ -12,7 +12,8 @@ function getRequiredVars() {
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'
artifactName: core.getInput('artifact_name') ?? 'github-pages',
isPreview: core.getInput('preview') === 'true'
}
}