Skip to content

Commit bd6bf16

Browse files
Update deploy-vpn.yml
1 parent f09ff66 commit bd6bf16

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/deploy-vpn.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ on:
1111
description: 'ssh_username'
1212
required: true
1313
default: 'root'
14+
debug_enabled:
15+
type: boolean
16+
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
17+
required: false
18+
default: false
1419
jobs:
1520
build:
1621
runs-on: ubuntu-latest
@@ -27,3 +32,8 @@ jobs:
2732
- name: SSH into remote host
2833
run: |
2934
ssh -o StrictHostKeyChecking=no ${{ inputs.ssh_username }}@${{ inputs.vpn_ip_address }} "date"
35+
36+
# Enable tmate debugging of manually-triggered workflows if the input option was provided
37+
- name: Setup tmate session
38+
uses: mxschmitt/action-tmate@v3
39+
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}

0 commit comments

Comments
 (0)