From 362c4fe3879a2c0b6a7f9eb12318183e3f0890a6 Mon Sep 17 00:00:00 2001 From: rettichlp Date: Mon, 22 May 2023 16:28:28 +0200 Subject: [PATCH] Improve and fix ssh handling --- .github/workflows/wiki_test.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/wiki_test.yml b/.github/workflows/wiki_test.yml index 49a64e693..5a57ae2ab 100644 --- a/.github/workflows/wiki_test.yml +++ b/.github/workflows/wiki_test.yml @@ -30,11 +30,13 @@ jobs: setup-ssh: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - # Make sure the @v0.7.0 matches the current version of the action - - uses: webfactory/ssh-agent@v0.8.0 - with: - ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} + - name: Setup SSH + run: | + mkdir -p ~/.ssh + echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + ssh-keyscan -H rettichlp.de >> ~/.ssh/known_hosts + cat ~/.ssh/id_rsa deploy: runs-on: ubuntu-latest needs: [ build,setup-ssh ]