Skip to content

Commit

Permalink
Remind about workflow_dispatch in tmate step name
Browse files Browse the repository at this point in the history
  • Loading branch information
EliahKagan committed Dec 5, 2023
1 parent 7108a9c commit 7ad95cc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ jobs:
- name: Run experiment on ${{ matrix.os-short }}
run: ./run-experiment

- name: Interact with ${{ matrix.os-short }} via tmate
# FIXME: Build the name in a better way.
- name: |
${{ format('Interact with {0} via tmate{1}',
matrix.os-short,
(github.event_name != 'workflow_dispatch' && ' (workflow_dispatch only)' || ''))
}}
if: (success() || failure()) && github.event_name == 'workflow_dispatch' && inputs.debug
uses: mxschmitt/action-tmate@v3
with:
Expand Down

0 comments on commit 7ad95cc

Please sign in to comment.