Skip to content

Commit

Permalink
dumper_bot.yml: Use tmux
Browse files Browse the repository at this point in the history
  • Loading branch information
sounddrill31 authored Mar 12, 2024
1 parent 82d3c37 commit 19b7a58
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/dumper_bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,9 @@ jobs:
steps:
- name: Run command via SSH
run: |
sudo apt update
sudo apt install expect -y
expect -c "
spawn ssh -o 'SetEnv SECRET=${{ secrets.SEGFAULT_TOKEN }}' [email protected] #bot added to ~/.zshrc
expect {
\"*password:*\" {
send -- \"segfault\r\"
exp_continue
}
eof
}"
sudo apt update
sudo apt install tmux -y
tmux new-session -d -s ghactions
tmux send-keys -t ghactions 'ssh -o "SetEnv SECRET=${{ secrets.SEGFAULT_TOKEN }}" [email protected] #bot added to ~/.zshrc' Enter 'segfault'

0 comments on commit 19b7a58

Please sign in to comment.