From c8ebca1bbf5c3d7d3d542bb53df0ecf4d9a157ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ph=E1=BA=A1m=20Ti=E1=BA=BFn=20H=E1=BA=A3i?= <64392275+just-pthai-it@users.noreply.github.com> Date: Tue, 16 Jul 2024 16:22:09 +0700 Subject: [PATCH] Update .github-actions.yml --- .github/workflows/.github-actions.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/.github-actions.yml b/.github/workflows/.github-actions.yml index 7684ee7..c217170 100644 --- a/.github/workflows/.github-actions.yml +++ b/.github/workflows/.github-actions.yml @@ -12,28 +12,23 @@ jobs: 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 }} - DAY_OF_WEEK: Monday 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!" - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." - - run: ls -la - name: Check out repository code uses: actions/checkout@v4 - - run: ls -la - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." - run: echo "🖥️ The workflow is now ready to test your code on the runner." - name: List files in the repository run: | ls ${{ github.workspace }} - run: echo "🍏 This job's status is ${{ job.status }}." - - run: echo "$SSH_PRIVATE_KEY_LOCALCOMPUTER" - - run: echo "$DAY_OF_WEEK" - - run: echo "test" >> abc.txt - - run: cat abc.txt - # - run: ssh-agent -s - # - run: eval $(ssh-agent -s) - # - run: ssh-add <(echo "$SSH_PRIVATE_KEY_LOCALCOMPUTER") + - run: eval $(ssh-agent -s) + - run: ssh-add <(echo "$SSH_PRIVATE_KEY_LOCALCOMPUTER") + - run: mkdir -p ~/.ssh + - run: ssh-keyscan -H $MY_VPS_IP_ADDRESS >> ~/.ssh/known_hosts + - run: ssh $MY_VPS_USER@$MY_VPS_IP_ADDRESS # - name: Set up SSH agent # uses: webfactory/ssh-agent@v0.5.4 # with: