-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathaction.yml
30 lines (27 loc) · 805 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
30
name: 'Ngrok TCP Tunelling'
description: 'A github action for tunelling TCP traffic from within Workflow environemt'
branding:
icon: 'activity'
color: 'green'
inputs:
timeout:
description: 'Challenge deployment timeout'
required: true
default: '1h'
port:
description: 'The port to forward traffic to'
required: true
ngrok_authtoken:
description: 'Ngrok authorization token'
required: true
runs:
using: "composite"
steps:
- run: wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
shell: bash
- run: unzip -qq ngrok-stable-linux-amd64.zip
shell: bash
- run: ./ngrok authtoken ${{ inputs.ngrok_authtoken }}
shell: bash
- run: timeout ${{ inputs.timeout }} ./ngrok tcp ${{ inputs.port }}
shell: bash