kota65535 / github-openvpn-connect-action

GitHub Action for connecting to OpenVPN server.
MIT License
85 stars 54 forks source link

wrong file path #68

Open Elangkumaran15 opened 5 months ago

Elangkumaran15 commented 5 months ago
  - name: Connect to VPN
    uses: "kota65535/github-openvpn-connect-action@v2"
    with:
      config_file: .github/workflows/client.ovpn
      username: ${{ secrets.OVPN_USERNAME }}
      password: ${{ secrets.OVPN_PASSWORD }}
      client_key: ${{ secrets.OVPN_CLIENT_KEY }}
      tls_auth_key: ${{ secrets.OVPN_TLS_AUTH_KEY }}

image

I am unable to establish the connection.. shows as Error: config file '.github/workflows/client.ovpn' not found

skymoore commented 4 months ago

It's difficult to diagnose your issue without seeing the entire workflow file. Did you checkout the repo before this step?

MunnyReol commented 1 month ago

That’s because your confi_file value treated as text and then vpn try to get the file from that path. Here is a possible solution Save file or move the file to ${{ github.workspace }}/client.ovpn and then set this in the config_file value config_file: ${{ github.workspace }}/client.ovpn