From 470e909392c8f3453f7a4698365002d629c9e6cd Mon Sep 17 00:00:00 2001 From: Leo Sin Date: Thu, 13 Jun 2024 02:32:52 -0400 Subject: [PATCH] chore: restart ssh --- .github/actions/setup-sshd/action.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/actions/setup-sshd/action.yml b/.github/actions/setup-sshd/action.yml index db7747a..8f0fdb9 100644 --- a/.github/actions/setup-sshd/action.yml +++ b/.github/actions/setup-sshd/action.yml @@ -52,11 +52,13 @@ runs: - name: Restart sshd - Linux if: runner.os == 'Linux' + shell: bash run: | sudo systemctl restart ssh - name: Restart sshd - Mac if: runner.os == 'macOS' + shell: bash run: | sudo launchctl unload /System/Library/LaunchDaemons/ssh.plist sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist