Skip to content

Commit d6fba7b

Browse files
authored
Update ngork.yml
1 parent ab996bf commit d6fba7b

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

.github/workflows/ngork.yml

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,11 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v1
16+
17+
- uses: shaowenchen/debugger-action@v2
18+
name: debugger
19+
timeout-minutes: 30
20+
continue-on-error: true
21+
with:
22+
ngrok_token: ${{ secrets.NGROK_SSH_TOKEN }}
1623

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_SSH_TOKEN }}
27-
# This password you will use when authorizing via SSH
28-
USER_PASS: ${{ secrets.USER_PASSWD }}
29-
30-
- name: Don't kill instace
31-
if: ${{ failure() }}
32-
run: sleep 1h # Prevent to killing instance after failure

0 commit comments

Comments
 (0)