Merge pull request #26 from actions/parsing-number

Parse correct timeout
This commit is contained in:
Mingzi
2022-03-28 11:21:14 -07:00
committed by GitHub
5 changed files with 8 additions and 8 deletions

4
dist/index.js vendored
View File

@@ -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

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@@ -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

File diff suppressed because one or more lines are too long

View File

@@ -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