Skip to content

Commit a44303a

Browse files
committed
fix: use variable for max iterations
1 parent 44bc496 commit a44303a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

action.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ inputs:
3333
codedeploy_group:
3434
description: 'AWS CodeDeploy Application Group'
3535
required: true
36+
max_polling_iterations:
37+
description: 'Max amount of iterations (15s increments) to wait for a deployment'
38+
required: false
39+
default: '60'
3640
runs:
3741
using: 'docker'
3842
image: 'Dockerfile'

deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function pollForActiveDeployments() {
5757
while [ "$(getActiveDeployments)" != "[]" ]; do
5858
echo -e "$ORANGE Deployment in progress. Sleeping 15 seconds. (Try $((++deadlockCounter)))";
5959

60-
if [ "$deadlockCounter" -gt "$MAX_POLLING_ITERATIONS" ]; then
60+
if [ "$deadlockCounter" -gt "$INPUT_MAX_POLLING_ITERATIONS" ]; then
6161
echo -e "$RED Max polling iterations reached (max_polling_iterations)."
6262
exit 1;
6363
fi

0 commit comments

Comments
 (0)