Skip to content

Commit 7d8a88d

Browse files
authored
👷 Enable tmate for remote debugging (#10)
1 parent fba48ff commit 7d8a88d

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ on:
88
types:
99
- opened
1010
- synchronize
11+
workflow_dispatch:
12+
inputs:
13+
debug_enabled:
14+
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
15+
required: false
16+
default: 'false'
1117

1218
jobs:
1319

@@ -21,7 +27,12 @@ jobs:
2127
uses: actions/setup-python@v5
2228
with:
2329
python-version: '3.10'
24-
30+
# Allow debugging with tmate
31+
- name: Setup tmate session
32+
uses: mxschmitt/action-tmate@v3
33+
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled == 'true' }}
34+
with:
35+
limit-access-to-actor: true
2536
- run: docker compose build
2637
- run: docker compose down -v --remove-orphans
2738
- run: docker compose up -d

0 commit comments

Comments
 (0)