Skip to content

Commit 112e9c9

Browse files
committed
Enhance GitHub Actions workflow with optional tmate debugging
- Added a `workflow_dispatch` trigger to the GitHub Actions workflow, allowing manual execution with an optional `debug_enabled` input. - The tmate session setup step is now conditionally executed based on the `debug_enabled` input, improving flexibility for debugging during CI runs.
1 parent fb4ea5e commit 112e9c9

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,14 @@ on:
44
push:
55
branches:
66
- main
7-
87
pull_request:
9-
8+
workflow_dispatch:
9+
inputs:
10+
debug_enabled:
11+
type: boolean
12+
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
13+
required: false
14+
default: false
1015
jobs:
1116
build:
1217
strategy:
@@ -22,6 +27,7 @@ jobs:
2227

2328
- name: Setup tmate session
2429
uses: mxschmitt/action-tmate@v3
30+
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
2531

2632
- name: Install TA-Lib on Ubuntu
2733
if: matrix.os == 'ubuntu-latest'

0 commit comments

Comments
 (0)