From c04e0ac7d00cc54b122b39a96b36b627fde15345 Mon Sep 17 00:00:00 2001 From: efbe Date: Thu, 25 Jan 2024 08:46:30 +0700 Subject: [PATCH] tes --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 348912b..85e0a48 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,11 +15,11 @@ jobs: # https://stackoverflow.com/a/70447517 run: | install -m 600 -D /dev/null ~/.ssh/id_rsa - echo "${{ env.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa - echo ${{ env.SSH_HOST }} + echo "${{ secrets.SSH_PRIVATE_KEY }}" + echo ${{ env.SSH_HOST }} echo $SSH_HOST - # ssh-keyscan -H ${{ env.SSH_HOST }} > ~/.ssh/known_hosts + # ssh-keyscan -H ${{ env.SSH_HOST }} > ~/.ssh/known_hosts # - name: connect and pull # run: ssh ${{ env.SSH_USER }}@${{ env.SSH_HOST }} "cd ${{ env.WORK_DIR }} && git checkout ${{ env.MAIN_BRANCH }} && git pull && exit" # - name: cleanup