diff --git a/.github/workflows/dotnet-test.yml b/.github/workflows/dotnet-test.yml index 608b9fe..7005593 100644 --- a/.github/workflows/dotnet-test.yml +++ b/.github/workflows/dotnet-test.yml @@ -42,7 +42,8 @@ jobs: ssh-private-key: ${{ secrets.SSH_KEY }} - name: Add server to known hosts - run: ssh-keyscan -H ${{ secrets.SSH_USERNAME }}@{{ secrets.SSH_IP }} > ~/.ssh/known_hosts + run: | + ssh-keyscan -H ${{ secrets.SSH_USERNAME }}@{{ secrets.SSH_IP }} > ~/.ssh/known_hosts - name: SSH to machine and deploy run: |