mirror of
https://github.com/actions/deploy-pages.git
synced 2025-12-08 16:16:16 +00:00
Merge branch 'main' into decouple-telemetry
This commit is contained in:
@@ -23,7 +23,7 @@ inputs:
|
|||||||
reporting_interval:
|
reporting_interval:
|
||||||
description: 'Time in milliseconds between two deployment status report (default: 1 second)'
|
description: 'Time in milliseconds between two deployment status report (default: 1 second)'
|
||||||
required: false
|
required: false
|
||||||
default: "1000"
|
default: "5000"
|
||||||
outputs:
|
outputs:
|
||||||
page_url:
|
page_url:
|
||||||
description: 'URL to deployed Github Pages'
|
description: 'URL to deployed Github Pages'
|
||||||
|
|||||||
17
dist/index.js
vendored
17
dist/index.js
vendored
@@ -7125,9 +7125,9 @@ class Deployment {
|
|||||||
this.deploymentInfo["status_url"] :
|
this.deploymentInfo["status_url"] :
|
||||||
`https://api.github.com/repos/${this.repositoryNwo}/pages/deployment/status/${process.env['GITHUB_SHA']}`
|
`https://api.github.com/repos/${this.repositoryNwo}/pages/deployment/status/${process.env['GITHUB_SHA']}`
|
||||||
core.setOutput('page_url', this.deploymentInfo != null ? this.deploymentInfo["page_url"] : "")
|
core.setOutput('page_url', this.deploymentInfo != null ? this.deploymentInfo["page_url"] : "")
|
||||||
const timeout = core.getInput('timeout')
|
const timeout = Number(core.getInput('timeout'))
|
||||||
const reportingInterval = Number(core.getInput('reporting_interval'))
|
const reportingInterval = Number(core.getInput('reporting_interval'))
|
||||||
const maxErrorCount = core.getInput('error_count')
|
const maxErrorCount = Number(core.getInput('error_count'))
|
||||||
var startTime = Date.now()
|
var startTime = Date.now()
|
||||||
var errorCount = 0
|
var errorCount = 0
|
||||||
|
|
||||||
@@ -7182,12 +7182,13 @@ class Deployment {
|
|||||||
core.setFailed('Failed with status code: ' + res.status)
|
core.setFailed('Failed with status code: ' + res.status)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
|
||||||
// Handle timeout
|
// Handle timeout
|
||||||
if (Date.now() - startTime >= timeout) {
|
if (Date.now() - startTime >= timeout) {
|
||||||
core.info('Timeout reached, aborting!')
|
core.info('Timeout reached, aborting!')
|
||||||
core.setFailed('Timeout reached, aborting!')
|
core.setFailed('Timeout reached, aborting!')
|
||||||
return
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
core.setFailed(error)
|
core.setFailed(error)
|
||||||
|
|||||||
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
17
pre/index.js
17
pre/index.js
@@ -7125,9 +7125,9 @@ class Deployment {
|
|||||||
this.deploymentInfo["status_url"] :
|
this.deploymentInfo["status_url"] :
|
||||||
`https://api.github.com/repos/${this.repositoryNwo}/pages/deployment/status/${process.env['GITHUB_SHA']}`
|
`https://api.github.com/repos/${this.repositoryNwo}/pages/deployment/status/${process.env['GITHUB_SHA']}`
|
||||||
core.setOutput('page_url', this.deploymentInfo != null ? this.deploymentInfo["page_url"] : "")
|
core.setOutput('page_url', this.deploymentInfo != null ? this.deploymentInfo["page_url"] : "")
|
||||||
const timeout = core.getInput('timeout')
|
const timeout = Number(core.getInput('timeout'))
|
||||||
const reportingInterval = Number(core.getInput('reporting_interval'))
|
const reportingInterval = Number(core.getInput('reporting_interval'))
|
||||||
const maxErrorCount = core.getInput('error_count')
|
const maxErrorCount = Number(core.getInput('error_count'))
|
||||||
var startTime = Date.now()
|
var startTime = Date.now()
|
||||||
var errorCount = 0
|
var errorCount = 0
|
||||||
|
|
||||||
@@ -7182,12 +7182,13 @@ class Deployment {
|
|||||||
core.setFailed('Failed with status code: ' + res.status)
|
core.setFailed('Failed with status code: ' + res.status)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
|
||||||
// Handle timeout
|
// Handle timeout
|
||||||
if (Date.now() - startTime >= timeout) {
|
if (Date.now() - startTime >= timeout) {
|
||||||
core.info('Timeout reached, aborting!')
|
core.info('Timeout reached, aborting!')
|
||||||
core.setFailed('Timeout reached, aborting!')
|
core.setFailed('Timeout reached, aborting!')
|
||||||
return
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
core.setFailed(error)
|
core.setFailed(error)
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -81,9 +81,9 @@ class Deployment {
|
|||||||
this.deploymentInfo["status_url"] :
|
this.deploymentInfo["status_url"] :
|
||||||
`https://api.github.com/repos/${this.repositoryNwo}/pages/deployment/status/${process.env['GITHUB_SHA']}`
|
`https://api.github.com/repos/${this.repositoryNwo}/pages/deployment/status/${process.env['GITHUB_SHA']}`
|
||||||
core.setOutput('page_url', this.deploymentInfo != null ? this.deploymentInfo["page_url"] : "")
|
core.setOutput('page_url', this.deploymentInfo != null ? this.deploymentInfo["page_url"] : "")
|
||||||
const timeout = core.getInput('timeout')
|
const timeout = Number(core.getInput('timeout'))
|
||||||
const reportingInterval = Number(core.getInput('reporting_interval'))
|
const reportingInterval = Number(core.getInput('reporting_interval'))
|
||||||
const maxErrorCount = core.getInput('error_count')
|
const maxErrorCount = Number(core.getInput('error_count'))
|
||||||
var startTime = Date.now()
|
var startTime = Date.now()
|
||||||
var errorCount = 0
|
var errorCount = 0
|
||||||
|
|
||||||
@@ -138,12 +138,13 @@ class Deployment {
|
|||||||
core.setFailed('Failed with status code: ' + res.status)
|
core.setFailed('Failed with status code: ' + res.status)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
|
||||||
// Handle timeout
|
// Handle timeout
|
||||||
if (Date.now() - startTime >= timeout) {
|
if (Date.now() - startTime >= timeout) {
|
||||||
core.info('Timeout reached, aborting!')
|
core.info('Timeout reached, aborting!')
|
||||||
core.setFailed('Timeout reached, aborting!')
|
core.setFailed('Timeout reached, aborting!')
|
||||||
return
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
core.setFailed(error)
|
core.setFailed(error)
|
||||||
|
|||||||
Reference in New Issue
Block a user