From 7ad95cc796a1dfc15129f9def29dce479f56ba92 Mon Sep 17 00:00:00 2001 From: Eliah Kagan Date: Tue, 5 Dec 2023 04:30:39 -0500 Subject: [PATCH] Remind about workflow_dispatch in tmate step name --- .github/workflows/main.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index edda7bc..31844e7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: