Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
gushmazuko committed Apr 17, 2024
1 parent 18e1333 commit 6d6bd85
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,24 @@ jobs:
run: |
echo "TERM=xterm" >> $GITHUB_ENV
- name: Check DNS readiness
run: |
echo "Checking DNS readiness..."
max_attempts=$((2 * 60 / 5))
attempt=1
while [ $attempt -le $max_attempts ]; do
if curl -Is https://termux.dev > /dev/null; then
echo "DNS is ready and HTTP request to Termux was successful."
break
else
if [ $attempt -eq $max_attempts ]; then
echo "Timeout reached. DNS is still not ready."
exit 1
fi
attempt=$((attempt + 1))
sleep 5
fi
done
# - name: Check DNS readiness
# run: |
# echo "Checking DNS readiness..."
# max_attempts=$((2 * 60 / 5))
# attempt=1
# while [ $attempt -le $max_attempts ]; do
# if curl -Is https://termux.dev > /dev/null; then
# echo "DNS is ready and HTTP request to Termux was successful."
# break
# else
# if [ $attempt -eq $max_attempts ]; then
# echo "Timeout reached. DNS is still not ready."
# exit 1
# fi
# attempt=$((attempt + 1))
# sleep 5
# fi
# done

- name: Update packages
run: |
Expand Down

0 comments on commit 6d6bd85

Please sign in to comment.