Based on "golfzaptw/action-connect-ovpn#36 (comment)"
- OVPN_CONFIG: copy your raw .ovpn config to this secret - it cant reference any other cert,secret, or tls files - i.e. must be self-contained
- OVPN_USER: copy your username (if applicable) to this secret - NO NEWLINE
- OVPN_PASS: copy your password (if applicable) to this secret - NO NEWLINE
- name: Connect VPN
uses: aduriseti/ovpn3-connect-action@v1
with:
ovpn-config: ${{ secrets.OVPN_CONFIG }}
vpn-user: ${{ secrets.VPN_USER }}
vpn-pass: ${{ secrets.VPN_PASS }}
.........
USE VPN CONNECTION HERE
.........
- name: Kill VPN Connection
if: always()
run: |
sudo pkill openvpn