We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f09ff66 commit bd6bf16Copy full SHA for bd6bf16
.github/workflows/deploy-vpn.yml
@@ -11,6 +11,11 @@ on:
11
description: 'ssh_username'
12
required: true
13
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
19
jobs:
20
build:
21
runs-on: ubuntu-latest
@@ -27,3 +32,8 @@ jobs:
27
32
- name: SSH into remote host
28
33
run: |
29
34
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