From 38f88c968e1e311595637c88a9575f28cf591376 Mon Sep 17 00:00:00 2001 From: "Eduardo Valdes Jr." <1084551+emvaldes@users.noreply.github.com> Date: Thu, 7 Nov 2024 14:50:20 -0700 Subject: [PATCH] Correcting an networking validation issue (#16504) --- .github/actions/connect-ovpn/action.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/actions/connect-ovpn/action.yml b/.github/actions/connect-ovpn/action.yml index 220338866d6..140c478c0af 100644 --- a/.github/actions/connect-ovpn/action.yml +++ b/.github/actions/connect-ovpn/action.yml @@ -34,14 +34,10 @@ runs: sudo apt-get install openvpn-systemd-resolved shell: bash - - name: Validate OpenVPN + - name: Validate OpenVPN Version run: | echo -e "\nOpenVPN Version:" ; openvpn --version ; - echo -e "\nPinging URL: ${{ inputs.PING_URL }}" ; - ping -c 3 ${{ inputs.PING_URL }} ; - echo -e "\nIP Route:" ; - ip route ; shell: bash - name: Connect VPN @@ -70,7 +66,14 @@ runs: run: | sleep 5 if ping -c 2 $PING_URL > /dev/null 2>&1; then + + # echo -e "\nPinging URL: ${{ inputs.PING_URL }}" ; + # ping -c 3 ${{ inputs.PING_URL }} ; + echo "vpn-status=true" >> $GITHUB_OUTPUT + + echo -e "\nIP Route:" ; + ip route ; else echo "vpn-status=false" >> $GITHUB_OUTPUT fi