Skip to content

Commit 67d8112

Browse files
committed
Package
1 parent 15e2f64 commit 67d8112

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

dist/index.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,11 +460,18 @@ async function createCodeDeployDeployment(codedeploy, clusterName, service, task
460460

461461
async function run() {
462462
try {
463+
const maxRetries = parseInt(core.getInput('max-retries', { required: false })) || 3;
464+
463465
const ecs = new ECS({
464-
customUserAgent: 'amazon-ecs-deploy-task-definition-for-github-actions'
466+
customUserAgent: 'amazon-ecs-deploy-task-definition-for-github-actions',
467+
maxAttempts: maxRetries,
468+
retryMode: 'standard'
465469
});
470+
466471
const codedeploy = new CodeDeploy({
467-
customUserAgent: 'amazon-ecs-deploy-task-definition-for-github-actions'
472+
customUserAgent: 'amazon-ecs-deploy-task-definition-for-github-actions',
473+
maxAttempts: maxRetries,
474+
retryMode: 'standard'
468475
});
469476

470477
// Get inputs

0 commit comments

Comments
 (0)