From 73a4a01305a3022672e976a5019a78a94c4f492e Mon Sep 17 00:00:00 2001 From: TheEmber <40074315+TheEmber@users.noreply.github.com> Date: Mon, 30 Oct 2023 00:46:09 +0200 Subject: [PATCH] Update dotnet-test.yml --- .github/workflows/dotnet-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet-test.yml b/.github/workflows/dotnet-test.yml index 7005593..1ec16ed 100644 --- a/.github/workflows/dotnet-test.yml +++ b/.github/workflows/dotnet-test.yml @@ -43,7 +43,7 @@ jobs: - name: Add server to known hosts run: | - ssh-keyscan -H ${{ secrets.SSH_USERNAME }}@{{ secrets.SSH_IP }} > ~/.ssh/known_hosts + echo "$SSH_IP" | xargs -I % ssh-keyscan -H % >> $HOME/.ssh/known_hosts - name: SSH to machine and deploy run: |