We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f12e38d + 2257103 commit 4837c8dCopy full SHA for 4837c8d
.github/workflows/stackhpc-all-in-one.yml
@@ -158,13 +158,15 @@ jobs:
158
for attempt in $(seq 5); do
159
if terraform apply -auto-approve; then
160
echo "Created infrastructure on attempt $attempt"
161
- break
+ exit 0
162
fi
163
echo "Failed to create infrastructure on attempt $attempt"
164
sleep 10
165
terraform destroy -auto-approve
166
sleep 60
167
done
168
+ echo "Failed to create infrastructure after $attempt attempts"
169
+ exit 1
170
working-directory: ${{ github.workspace }}/terraform/aio
171
env:
172
OS_CLOUD: ${{ inputs.OS_CLOUD }}
0 commit comments