-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
29 lines (29 loc) · 942 Bytes
/
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
name: "Set up OpenConnect connection"
author: Luke Swanson
description: "This action installs and runs OpenConnect to make a connection to a VPN endpoint."
branding:
icon: 'download'
color: 'blue'
inputs:
username:
description: "The username for making the connection."
required: true
password:
description: "The password for making the connection."
required: true
endpoint:
description: "The VPN endpoint to connect to."
required: true
protocol:
description: "The password for making the connection."
required: false
default: "gp"
runs:
using: "composite"
steps:
- name: Install OpenConnect
run: sudo apt-get -q update && sudo apt-get -q install openconnect
shell: bash
- name: Connect VPN
run: echo ${{ inputs.password }} | sudo openconnect --protocol=${{ inputs.protocol }} -u ${{ inputs.username }} --passwd-on-stdin ${{ inputs.endpoint }} &
shell: bash