-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
39 lines (38 loc) · 1.31 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: OpenVPN Connection
author: Leukeleu B.V.
description: Create a VPN connection to a remote server
branding:
icon: lock
color: orange
inputs:
username:
description: 'The username to use for the VPN connection'
required: true
password:
description: 'The password to use for the VPN connection'
required: true
tls_auth_key:
description: 'The tls-auth key to use for the VPN connection'
required: true
remote:
description: 'The remote server [and port] to connect to. Separate host and port with a space.'
required: true
runs:
using: composite
steps:
- name: Install OpenVPN
shell: bash
run: |
sudo apt-get update
sudo apt-get --no-install-recommends -qq install openvpn
- name: Update the config file
shell: bash
run: echo "remote ${{ inputs.remote }}" >> $GITHUB_ACTION_PATH/config/client.ovpn
- name: Open VPN connection
# This is an exact pin of a third-party action. Only update after thoroughly reviewing the changes!
uses: "kota65535/github-openvpn-connect-action@9bff2bca2a134890419a96d791ac143b08b37fae"
with:
config_file: ${{ github.action_path }}/config/client.ovpn
username: ${{ inputs.username }}
password: ${{ inputs.password }}
tls_auth_key: ${{ inputs.tls_auth_key }}