-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
82d3c37
commit 19b7a58
Showing
1 changed file
with
6 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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' | ||