Skip to content

Commit

Permalink
chore: update status lambda v4
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneD authored Feb 3, 2025
1 parent 76ce5f3 commit 521c4d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/actions/deploy-lambda-v4/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ runs:
SLEEP_DURATION=10
while [[ $ATTEMPT -lt $MAX_ATTEMPTS ]]; do
STATUS_RESPONSE=$(docker run --rm okigan/awscurl --service execute-api --access_key ${{ inputs.access-key-id }} --secret_key ${{ inputs.secret-access-key-id }} --region ${{ inputs.region }} -X GET $STATUS_URL)
STATUS=$(echo "$STATUS_RESPONSE" | jq -r '.message')
STATUS_CODE=$(echo "$STATUS_RESPONSE" | grep HTTP | awk '{print $2}')
STATUS_CODE=$(echo "$STATUS_RESPONSE" | awk 'NR==1{print $2}')
STATUS=$(echo "$STATUS_RESPONSE" | jq -r '.message')
if [[ "$STATUS_CODE" -ne 200 ]]; then
echo "Received non-200 status code: $STATUS_CODE. Exiting polling."
echo $STATUS_RESPONSE
echo $STATUS_RESPONSE
exit 1
fi
if [[ "$STATUS" == "Succeeded" ]]; then
Expand Down

0 comments on commit 521c4d3

Please sign in to comment.