Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong file path #68

Open
Elangkumaran15 opened this issue May 6, 2024 · 2 comments
Open

wrong file path #68

Elangkumaran15 opened this issue May 6, 2024 · 2 comments

Comments

@Elangkumaran15
Copy link

Elangkumaran15 commented May 6, 2024

  - 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
Copy link
Contributor

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

@MunnyReol
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants