Skip to content

Commit

Permalink
Merge pull request #13 from mention-me/chore/fail-execution-if-deploy…
Browse files Browse the repository at this point in the history
…-does-not-succeed

Increase poll time and fail action if deployment times out
  • Loading branch information
ryanmab authored Oct 14, 2024
2 parents ad62fc1 + 8b1e0d6 commit 1476823
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export async function run(): Promise<void> {
if (status.isDeployed) {
core.info(`Deployment of ${name} (${version}) in ${region} successful!`);
} else if (status.hasFailed) {
core.error(`Deployment of ${name} (${version}) in ${region} failed!`);
core.setFailed(`Deployment of ${name} (${version}) in ${region} failed!`);
}

core.setOutput("successful", status.isDeployed && !status.hasFailed);
Expand Down
2 changes: 1 addition & 1 deletion src/utils/deploy/waitForDeploymentToFinish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Deployment } from "./startDeployment";
export async function waitForDeploymentToFinish(
{ region, connectorVersion, connectorName, deploymentId }: Deployment,
attempts = 120,
waitTime = 2000,
waitTime = 4000,
): ReturnType<typeof getDeploymentStatus> {
core.info(
`Waiting for deployment of ${connectorName} (${connectorVersion}) in ${region} to finish...`,
Expand Down

0 comments on commit 1476823

Please sign in to comment.