From 4b2b67f259795e8a3c14ce173517e1273e72a665 Mon Sep 17 00:00:00 2001 From: raller1028 <57336867+raller1028@users.noreply.github.com> Date: Tue, 21 Feb 2023 16:51:02 +0800 Subject: [PATCH] Update push_test_server.yml --- .github/workflows/push_test_server.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/push_test_server.yml b/.github/workflows/push_test_server.yml index 8ef5569..be1a023 100644 --- a/.github/workflows/push_test_server.yml +++ b/.github/workflows/push_test_server.yml @@ -55,6 +55,17 @@ jobs: with: network_id: ${{ secrets.ZEROTIER_NETWORK_ID }} auth_token: ${{ secrets.ZEROTIER_CENTRAL_TOKEN }} + + - name: ping host + shell: bash + run: | + count=10 + while ! ping -c 1 10.147.18.11 ; do + echo "waiting..." ; + sleep 1 ; + let count=count-1 + done + echo "ping success" - name: copy tar to target host shell: bash