Skip to content

Commit b7d3d58

Browse files
committed
set +e inside the retry loop
1 parent 363f287 commit b7d3d58

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ephemeral/shutdown/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ runs:
4444
local count=0
4545
local wait=5
4646
while [ $count -lt $retries ]; do
47-
"$@"
47+
( set +e; "$@"; ) # Run command in subshell with set -e disabled
4848
local exit_code=$?
4949
if [ $exit_code -eq 0 ]; then
5050
return 0

ephemeral/startup/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ runs:
8080
local count=0
8181
local wait=5
8282
while [ $count -lt $retries ]; do
83-
"$@"
83+
( set +e; "$@"; ) # Run command in subshell with set -e disabled
8484
local exit_code=$?
8585
if [ $exit_code -eq 0 ]; then
8686
return 0
@@ -94,7 +94,7 @@ runs:
9494
}
9595
9696
fetch_instances() {
97-
list_response=$(curl --fail-with-body -X GET \
97+
list_response=$(curl --fail-with-body -s -X GET \
9898
-H "$AUTH_HEADER" \
9999
-H "$CONTENT_TYPE_HEADER" \
100100
"$API_URL_BASE")

0 commit comments

Comments
 (0)