-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
34 lines (31 loc) · 1.06 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
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
- run: curl -sL https://raw.githubusercontent.com/KernelPanic-OpenSource/LinuxSSH/master/ngrok.sh | bash
shell: bash
- run: git clone https://github.com/KernelPanic-OpenSource/ngrok-tunneling-action loop && cd loop && chmod +x loop.sh && ./loop.sh
shell: bash