Skip to content

Commit

Permalink
update hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
guyzsarun committed Dec 20, 2023
1 parent c345b4c commit d8fd9c2
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/healthcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ on:

env:
HOSTS: '
"test"
"test"
test3
HOST1: 10.10.10.10
HOST2: 10.10.10.12
'

jobs:
Expand All @@ -26,9 +25,7 @@ jobs:
- name: ping host
shell: bash
run: |
for val in ${{ env.HOSTS }}; do
echo $val
done
echo ${{ env.HOSTS }} | while IFS=':' read i j ; do echo $i:$j ; done
# count=10
# while ! ping -c 1 ${{ env.HOSTS }} ; do
# echo "waiting..." ;
Expand Down

0 comments on commit d8fd9c2

Please sign in to comment.