Skip to content

Commit

Permalink
Correcting an networking validation issue (#16504)
Browse files Browse the repository at this point in the history
  • Loading branch information
emvaldes authored Nov 7, 2024
1 parent 73ac4b3 commit 38f88c9
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/actions/connect-ovpn/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 38f88c9

Please sign in to comment.