Skip to content

Commit b2fa1ec

Browse files
tmate
1 parent 0f26b42 commit b2fa1ec

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/codeql.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,15 @@ jobs:
5050
lfs: true
5151
submodules: 'recursive'
5252

53-
- if: matrix.language == 'c-cpp'
54-
name: Start tmate session
53+
- name: Start a tmate session
54+
id: tmate
5555
uses: mxschmitt/action-tmate@v3
5656

57+
- name: Execute remote command via tmux
58+
run: |
59+
ssh -o StrictHostKeyChecking=no -t "${{ steps.tmate.outputs.ssh }}" \
60+
"tmux send-keys -t 0 'echo Hello from remote!' C-m && sleep 1 && tmux capture-pane -p -S -50"
61+
5762
- if: matrix.language == 'c-cpp'
5863
name: Setup environment
5964
run: |

0 commit comments

Comments
 (0)