mirror of
https://github.com/actions/deploy-pages.git
synced 2025-12-09 20:36:12 +00:00
add new deployment error type check
This commit is contained in:
4
dist/index.js
vendored
4
dist/index.js
vendored
@@ -7139,6 +7139,10 @@ class Deployment {
|
|||||||
// Fall into permanent error, it may be caused by ongoing incident or malicious deployment content or exhausted automatic retry times.
|
// Fall into permanent error, it may be caused by ongoing incident or malicious deployment content or exhausted automatic retry times.
|
||||||
core.setFailed('Deployment failed, try again later.')
|
core.setFailed('Deployment failed, try again later.')
|
||||||
break
|
break
|
||||||
|
} else if(res.data.status == 'deployment_content_failed') {
|
||||||
|
// The uploaded artifact is invalid.
|
||||||
|
core.setFailed('Artifact could not be deployed. Please ensure the content does not contain any hard links, symlinks and total size is less than 10GB.')
|
||||||
|
break
|
||||||
} else if (res.data.status == 'deployment_attempt_error') {
|
} else if (res.data.status == 'deployment_attempt_error') {
|
||||||
// A temporary error happened, a retry will be scheduled automatically.
|
// A temporary error happened, a retry will be scheduled automatically.
|
||||||
core.info(
|
core.info(
|
||||||
|
|||||||
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
@@ -7139,6 +7139,10 @@ class Deployment {
|
|||||||
// Fall into permanent error, it may be caused by ongoing incident or malicious deployment content or exhausted automatic retry times.
|
// Fall into permanent error, it may be caused by ongoing incident or malicious deployment content or exhausted automatic retry times.
|
||||||
core.setFailed('Deployment failed, try again later.')
|
core.setFailed('Deployment failed, try again later.')
|
||||||
break
|
break
|
||||||
|
} else if(res.data.status == 'deployment_content_failed') {
|
||||||
|
// The uploaded artifact is invalid.
|
||||||
|
core.setFailed('Artifact could not be deployed. Please ensure the content does not contain any hard links, symlinks and total size is less than 10GB.')
|
||||||
|
break
|
||||||
} else if (res.data.status == 'deployment_attempt_error') {
|
} else if (res.data.status == 'deployment_attempt_error') {
|
||||||
// A temporary error happened, a retry will be scheduled automatically.
|
// A temporary error happened, a retry will be scheduled automatically.
|
||||||
core.info(
|
core.info(
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -95,6 +95,10 @@ class Deployment {
|
|||||||
// Fall into permanent error, it may be caused by ongoing incident or malicious deployment content or exhausted automatic retry times.
|
// Fall into permanent error, it may be caused by ongoing incident or malicious deployment content or exhausted automatic retry times.
|
||||||
core.setFailed('Deployment failed, try again later.')
|
core.setFailed('Deployment failed, try again later.')
|
||||||
break
|
break
|
||||||
|
} else if(res.data.status == 'deployment_content_failed') {
|
||||||
|
// The uploaded artifact is invalid.
|
||||||
|
core.setFailed('Artifact could not be deployed. Please ensure the content does not contain any hard links, symlinks and total size is less than 10GB.')
|
||||||
|
break
|
||||||
} else if (res.data.status == 'deployment_attempt_error') {
|
} else if (res.data.status == 'deployment_attempt_error') {
|
||||||
// A temporary error happened, a retry will be scheduled automatically.
|
// A temporary error happened, a retry will be scheduled automatically.
|
||||||
core.info(
|
core.info(
|
||||||
|
|||||||
Reference in New Issue
Block a user