Skip to content

Commit

Permalink
Run parameter to workflow_dispatch to start tmate on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
YannickJadoul committed Aug 1, 2023
1 parent dd8b687 commit c58d4f7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
- 'dependabot/**'
pull_request:
workflow_dispatch:
tmate:
type: boolean
description: 'Start tmate session on failure'
required: false
default: false

jobs:
tests:
Expand Down Expand Up @@ -178,6 +183,10 @@ jobs:
run: |
cmake --build build --target tests
- name: Setup tmate session
if: ${{ github.event_name == 'workflow_dispatch' && inputs.tmate && failure() }}
uses: mxschmitt/action-tmate@v3

docs:
name: Documentation
runs-on: ubuntu-latest
Expand Down Expand Up @@ -217,3 +226,7 @@ jobs:
- name: Check links
run: |
cmake --build build --target docs_linkcheck
- name: Setup tmate session
if: ${{ github.event_name == 'workflow_dispatch' && inputs.tmate && failure() }}
uses: mxschmitt/action-tmate@v3

0 comments on commit c58d4f7

Please sign in to comment.