We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67f5956 commit b0096aaCopy full SHA for b0096aa
.github/workflows/github-actions.yml
@@ -1,5 +1,14 @@
1
name: Build and run ROS tests
2
-on: [push, pull_request]
+on:
3
+ push:
4
+ pull_request:
5
+ workflow_dispatch:
6
+ inputs:
7
+ debug_enabled:
8
+ type: boolean
9
+ description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
10
+ required: false
11
+ default: false
12
jobs:
13
build:
14
strategy:
@@ -10,6 +19,12 @@ jobs:
19
container:
20
image: ros:${{ matrix.rosdistro }}-ros-core
21
steps:
22
+ # Enable tmate debugging of manually-triggered workflows if the input option was provided
23
+ - name: Setup tmate session
24
+ uses: mxschmitt/action-tmate@v3
25
+ if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
26
+ with:
27
+ detached: true
28
- name: Install apt dependencies
29
run: |
15
30
apt-get update
0 commit comments