mirror of
https://github.com/actions/deploy-pages.git
synced 2026-03-31 02:24:53 +00:00
7
dist/index.js
generated
vendored
7
dist/index.js
generated
vendored
@@ -10056,18 +10056,19 @@ class Deployment {
|
|||||||
this.timeout = !timeoutInput || timeoutInput <= 0 ? MAX_TIMEOUT : Math.min(timeoutInput, MAX_TIMEOUT)
|
this.timeout = !timeoutInput || timeoutInput <= 0 ? MAX_TIMEOUT : Math.min(timeoutInput, MAX_TIMEOUT)
|
||||||
|
|
||||||
const maxErrorCountInput = Number(core.getInput('error_count'))
|
const maxErrorCountInput = Number(core.getInput('error_count'))
|
||||||
if (maxErrorCountInput <= 0) {
|
if (!maxErrorCountInput || maxErrorCountInput <= 0) {
|
||||||
core.warning('Invalid error_count value will be ignored. Please ensure the value is a positive integer.')
|
core.warning('Invalid error_count value will be ignored. Please ensure the value is a positive integer.')
|
||||||
|
} else {
|
||||||
|
this.maxErrorCount = maxErrorCountInput
|
||||||
}
|
}
|
||||||
this.maxErrorCount = !maxErrorCountInput || maxErrorCountInput <= 0 ? null : maxErrorCountInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ask the runtime for the unsigned artifact URL and deploy to GitHub Pages
|
// Ask the runtime for the unsigned artifact URL and deploy to GitHub Pages
|
||||||
// by creating a deployment with that artifact
|
// by creating a deployment with that artifact
|
||||||
async create(idToken) {
|
async create(idToken) {
|
||||||
|
try {
|
||||||
this.setOptionalUserInput()
|
this.setOptionalUserInput()
|
||||||
|
|
||||||
try {
|
|
||||||
core.debug(`Actor: ${this.buildActor}`)
|
core.debug(`Actor: ${this.buildActor}`)
|
||||||
core.debug(`Action ID: ${this.actionsId}`)
|
core.debug(`Action ID: ${this.actionsId}`)
|
||||||
core.debug(`Actions Workflow Run ID: ${this.workflowRun}`)
|
core.debug(`Actions Workflow Run ID: ${this.workflowRun}`)
|
||||||
|
|||||||
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
@@ -56,18 +56,19 @@ class Deployment {
|
|||||||
this.timeout = !timeoutInput || timeoutInput <= 0 ? MAX_TIMEOUT : Math.min(timeoutInput, MAX_TIMEOUT)
|
this.timeout = !timeoutInput || timeoutInput <= 0 ? MAX_TIMEOUT : Math.min(timeoutInput, MAX_TIMEOUT)
|
||||||
|
|
||||||
const maxErrorCountInput = Number(core.getInput('error_count'))
|
const maxErrorCountInput = Number(core.getInput('error_count'))
|
||||||
if (maxErrorCountInput <= 0) {
|
if (!maxErrorCountInput || maxErrorCountInput <= 0) {
|
||||||
core.warning('Invalid error_count value will be ignored. Please ensure the value is a positive integer.')
|
core.warning('Invalid error_count value will be ignored. Please ensure the value is a positive integer.')
|
||||||
|
} else {
|
||||||
|
this.maxErrorCount = maxErrorCountInput
|
||||||
}
|
}
|
||||||
this.maxErrorCount = !maxErrorCountInput || maxErrorCountInput <= 0 ? null : maxErrorCountInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ask the runtime for the unsigned artifact URL and deploy to GitHub Pages
|
// Ask the runtime for the unsigned artifact URL and deploy to GitHub Pages
|
||||||
// by creating a deployment with that artifact
|
// by creating a deployment with that artifact
|
||||||
async create(idToken) {
|
async create(idToken) {
|
||||||
|
try {
|
||||||
this.setOptionalUserInput()
|
this.setOptionalUserInput()
|
||||||
|
|
||||||
try {
|
|
||||||
core.debug(`Actor: ${this.buildActor}`)
|
core.debug(`Actor: ${this.buildActor}`)
|
||||||
core.debug(`Action ID: ${this.actionsId}`)
|
core.debug(`Action ID: ${this.actionsId}`)
|
||||||
core.debug(`Actions Workflow Run ID: ${this.workflowRun}`)
|
core.debug(`Actions Workflow Run ID: ${this.workflowRun}`)
|
||||||
|
|||||||
Reference in New Issue
Block a user