From bf64a043fefd807e159e77632cabf4ece204e27f Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Thu, 22 Jan 2026 01:11:49 +0000 Subject: [PATCH] ci: make tmate SSH session opt-in via workflow_dispatch input - Add enable_tmate boolean input (default: false) to workflow_dispatch - Update all 3 tmate steps to only run when input is enabled AND failure occurs - Normal CI runs (push/PR) no longer trigger tmate on failure - Manual runs can enable tmate by checking the input when debugging is needed - Leave release.yml and version-bump.yml unchanged (rare failures, worth keeping) Co-authored-by: wharris --- .github/workflows/actions.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 3d473162..49e1f38c 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -41,6 +41,11 @@ on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: + inputs: + enable_tmate: + description: 'Enable tmate SSH session on failure' + type: boolean + default: false jobs: set_build_datetime: @@ -135,7 +140,7 @@ jobs: BUILD_ARCH: ${{ matrix.arch }} - name: Setup tmate session - if: ${{ failure() }} + if: ${{ failure() && inputs.enable_tmate == true }} uses: mxschmitt/action-tmate@v3 with: limit-access-to-actor: true @@ -583,7 +588,7 @@ jobs: retention-days: 90 - name: Setup tmate session - if: ${{ failure() }} + if: ${{ failure() && inputs.enable_tmate == true }} uses: mxschmitt/action-tmate@v3 with: limit-access-to-actor: true @@ -855,7 +860,7 @@ jobs: test_runner_only: "true" - name: Setup tmate session - if: ${{ failure() }} + if: ${{ failure() && inputs.enable_tmate == true }} uses: mxschmitt/action-tmate@v3 with: limit-access-to-actor: true