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 ec5ddfc commit 390bfd0Copy full SHA for 390bfd0
.github/workflows/build.yml
@@ -2,6 +2,12 @@ name: build
2
3
on:
4
workflow_dispatch:
5
+ inputs:
6
+ debug_enabled:
7
+ type: boolean
8
+ description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
9
+ required: false
10
+ default: false
11
push:
12
branches:
13
- master
@@ -70,6 +76,11 @@ jobs:
70
76
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:test
71
77
context: .
72
78
79
+ # Enable tmate debugging of manually-triggered workflows if the input option was provided
80
+ - name: Setup tmate session
81
+ uses: mxschmitt/action-tmate@v3
82
+ if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
83
+
73
84
- name: Test Docker image
74
85
id: test-image
75
86
run: |
0 commit comments