add debug workflow #1
Workflow file for this run
This file contains hidden or 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
name: Debug macOS Runner | |
on: [push] | |
jobs: | |
debug: | |
runs-on: macos-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Install SSH server | |
run: | | |
sudo systemsetup -f -setremotelogin on | |
echo "${{ secrets.SARINA_SSH_KEY }}" >> ~/.ssh/authorized_keys | |
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist | |
sudo launchctl start com.openssh.sshd | |
- name: Output SSH Command | |
run: echo "ssh -i <path-to-private-key> -o 'StrictHostKeyChecking=no' runner@$(hostname)" | |
- name: Keep Job Running | |
run: | | |
while true; do sleep 100; done |