forked from csexton/debugger-action
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (26 loc) · 964 Bytes
/
test_ngork.yaml
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: Debugging with SSH
on:
workflow_dispatch:
#watch:
# types: started
repository_dispatch:
types: debug
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Try Build
run: ./not-exist-file.sh it bloke build
- name: Start SSH via Ngrok
if: ${{ failure() }}
run: curl -sL https://gist.githubusercontent.com/retyui/7115bb6acf151351a143ec8f96a7c561/raw/7099b9db76729dc5761da72aa8525f632d8875c9/debug-github-actions.sh | bash
env:
# After sign up on the https://ngrok.com/
# You can find this token here: https://dashboard.ngrok.com/get-started/setup
NGROK_TOKEN: ${{ secrets.NGROK_TOKEN }}
# This password you will use when authorizing via SSH
USER_PASS: ${{ secrets.USER_PASS }}
- name: Don't kill instace
if: ${{ failure() }}
run: sleep 5h # Prevent to killing instance after failure