Merge pull request #3 from actions/display-error-status

Display correct failure error
This commit is contained in:
Mingzi
2021-12-16 14:56:36 -08:00
committed by GitHub
5 changed files with 5 additions and 8 deletions

3
dist/index.js vendored
View File

@@ -7137,8 +7137,7 @@ class Deployment {
break
} else if (res.data.status == 'deployment_failed') {
// Fall into permanent error, it may be caused by ongoing incident or malicious deployment content or exhausted automatic retry times.
core.info('Deployment failed, try again later.')
core.setOutput('status', 'failed')
core.setFailed('Deployment failed, try again later.')
break
} else if (res.data.status == 'deployment_attempt_error') {
// A temporary error happened, a retry will be scheduled automatically.

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@@ -7137,8 +7137,7 @@ class Deployment {
break
} else if (res.data.status == 'deployment_failed') {
// Fall into permanent error, it may be caused by ongoing incident or malicious deployment content or exhausted automatic retry times.
core.info('Deployment failed, try again later.')
core.setOutput('status', 'failed')
core.setFailed('Deployment failed, try again later.')
break
} else if (res.data.status == 'deployment_attempt_error') {
// A temporary error happened, a retry will be scheduled automatically.

File diff suppressed because one or more lines are too long

View File

@@ -93,8 +93,7 @@ class Deployment {
break
} else if (res.data.status == 'deployment_failed') {
// Fall into permanent error, it may be caused by ongoing incident or malicious deployment content or exhausted automatic retry times.
core.info('Deployment failed, try again later.')
core.setOutput('status', 'failed')
core.setFailed('Deployment failed, try again later.')
break
} else if (res.data.status == 'deployment_attempt_error') {
// A temporary error happened, a retry will be scheduled automatically.