From 1c737ff838b27991b14a779f93649379fff161d7 Mon Sep 17 00:00:00 2001 From: pthai Date: Mon, 17 Jun 2024 00:02:19 +0700 Subject: [PATCH] Update workflow. --- .github/workflows/.github-actions.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/.github-actions.yml b/.github/workflows/.github-actions.yml index 49df2fd..7917cde 100644 --- a/.github/workflows/.github-actions.yml +++ b/.github/workflows/.github-actions.yml @@ -9,9 +9,9 @@ jobs: runs-on: ubuntu-latest env: SSH_PRIVATE_KEY_LOCALCOMPUTER: ${{ secrets.SSH_PRIVATE_KEY_LOCALCOMPUTER }} - MY_VPS_USER: ${{ secrets.v }} - MY_VPS_IP_ADDRESS: ${{ secrets.MY_VPS_IP_ADDRESSMY_VPS_IP_ADDRESS }} - MY_VPS_PROJECT_PATH: ${{ secrets.MY_VPS_PROJECT_PATHv }} + MY_VPS_USER: ${{ secrets.MY_VPS_USER }} + MY_VPS_IP_ADDRESS: ${{ secrets.MY_VPS_IP_ADDRESS }} + MY_VPS_PROJECT_PATH: ${{ secrets.MY_VPS_PROJECT_PATH }} steps: - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" @@ -26,7 +26,7 @@ jobs: - run: echo "🍏 This job's status is ${{ job.status }}." - run: eval $(ssh-agent -s) - run: ssh-add <(echo "$SSH_PRIVATE_KEY_LOCALCOMPUTER") - - run: ssh-keyscan -H $$MY_VPS_IP_ADDRESS >> ~/.ssh/known_hosts + - run: ssh-keyscan -H $MY_VPS_IP_ADDRESS >> ~/.ssh/known_hosts - run: ssh $MY_VPS_USER@$MY_VPS_IP_ADDRESS - run: cd $MY_VPS_PROJECT_PATH - run: touch abc.xyz