Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds the ability to SSH into runners using https://github.com/mxschmitt/action-tmate. The way it works is like this:
You want to debug a runner either because it failed or for the heck of it;
You go to the
Actions
tab and find the list of actions in the left colum and select Mac or Windows (but not Linux - see Notes below):You then go to the far right and click the
Run workflow
dropdown:Note, the
Branch:
dropdown - currently (because this PR hasn't landed) I can only do it for this branch. After this PR lands you'll be able to do it for any branch;You check either one of the options; hopefully the descriptions are sufficient - if not ask in this PR and I'll update the descriptions accordingly;
The runner will run to completion or failure and then, at the end, start spamming
Note, not indefinitely but 600 spams;
Copy-paste and you'll arrive at a tmux session that looks like this:
Hit
ctrl-c
and you'll be dropped intotmux
:The job (not the whole action) exits/ends when you quit the session.
A few things to call out:
-i
part,ssh
will find it automatically if it's under~/.ssh
;git-bash
/mingw
/msys
. If you want powershell (or cmd) then you can dopowershell
(orcmd
);tmux
just refer to this cheatsheet.