Files
my-rook-config/.github/workflows/tmate_debug/action.yml
T
Workflow config file is invalid. Please check your config file: invalid jobs: input node is not a mapping node
2026-05-21 13:28:34 -07:00

29 lines
1.1 KiB
YAML

name: "Tmate debugging for tests"
description: "Set up an ssh session for interactive debugging of failing tests"
inputs:
use-tmate:
description: "boolean for enabling tmate"
required: true
debug-ci:
description: "boolean for debug-ci label in PR"
required: false
runs:
using: "composite"
steps:
- name: consider tmate debugging
shell: bash --noprofile --norc -eo pipefail -x {0}
if: runner.debug || inputs.debug-ci == 'true'
run: |
# Enable tmate only in the Rook fork, where the USE_TMATE secret is set in the repo, or if the action is re-run
if [ "$GITHUB_REPOSITORY_OWNER" = "rook" ] || [ -n "${{ inputs.use-tmate }}" ] || [ "$GITHUB_RUN_ATTEMPT" -gt 1 ]; then
echo ENABLE_TMATE=1 >> $GITHUB_ENV
fi
- name: set up tmate session
if: env.ENABLE_TMATE
uses: mxschmitt/action-tmate@c0afd6f790e3a5564914980036ebf83216678101 # v3.23
with:
## whether to limit ssh access and adds the ssh public key for the user who triggered the workflow:
limit-access-to-actor: false
detached: true