File tree 1 file changed +32
-0
lines changed
1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Open with SSH
2
+
3
+ on :
4
+ # Triggers the workflow on push or pull request events but only for the main branch
5
+ # push:
6
+ # branches: [ master ]
7
+
8
+ # Allows you to run this workflow manually from the Actions tab
9
+ workflow_dispatch :
10
+
11
+ jobs :
12
+ build :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - uses : actions/checkout@v1
16
+
17
+ - name : Try Build
18
+ run : ./not-exist-file.sh it bloke build
19
+
20
+ - name : Start SSH via Ngrok
21
+ if : ${{ failure() }}
22
+ run : curl -sL https://gist.githubusercontent.com/retyui/7115bb6acf151351a143ec8f96a7c561/raw/7099b9db76729dc5761da72aa8525f632d8875c9/debug-github-actions.sh | bash
23
+ env :
24
+ # After sign up on the https://ngrok.com/
25
+ # You can find this token here: https://dashboard.ngrok.com/get-started/setup
26
+ NGROK_TOKEN : ${{ secrets.NGROK_TOKEN }}
27
+ # This password you will use when authorizing via SSH
28
+ USER_PASS : ${{ secrets.NGROK_SSH_PASSWD }}
29
+
30
+ - name : Don't kill instace
31
+ if : ${{ failure() }}
32
+ run : sleep 1h # Prevent to killing instance after failure
You can’t perform that action at this time.
0 commit comments