Skip to content

Commit

Permalink
HARMONY-1564: Add handling of = in status.
Browse files Browse the repository at this point in the history
  • Loading branch information
ygliuvt committed Jan 25, 2024
1 parent 3ec72de commit 5b7273b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/harmony-in-a-box.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,14 @@ jobs:
- name: Check Giovanni request final status
run: |
for i in {1..30}; do
GIOVANNI_STATUS==$(curl -Ln -bj "${{ steps.giovanni.outputs.status_url }}" | jq -r '.status')
if [[ "$GIOVANNI_STATUS" == *"running"* ]]; then
request_status==$(curl -Ln -bj "${{ steps.giovanni.outputs.status_url }}" | jq -r '.status')
# remove the leading = that shows up only in github actions
GIOVANNI_STATUS="${request_status#=}"
if [[ "$GIOVANNI_STATUS" != "running" ]]; then
break
else
echo "Giovanni reqeust running, wait..."
sleep 10
else
break
fi
done
Expand Down

0 comments on commit 5b7273b

Please sign in to comment.