From 13b59397afd41c052005ca53cac5067fa9329527 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Thu, 6 Jun 2024 12:48:54 +0800 Subject: [PATCH] ci: refactor environment variables and SSH action steps - Replace `POSTGRES_DB` with `USER_PASSWORD` environment variable - Add a step to execute remote SSH commands using `appleboy/ssh-action@v1.0.3` Signed-off-by: Bo-Yi Wu --- .github/workflows/test2.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test2.yaml b/.github/workflows/test2.yaml index a9b8a29..5abc109 100644 --- a/.github/workflows/test2.yaml +++ b/.github/workflows/test2.yaml @@ -68,7 +68,7 @@ jobs: env: PASSWORD_ACCESS: true USER_NAME: password - POSTGRES_DB: linuxserver.io + USER_PASSWORD: linuxserver.io steps: - name: Checkout code @@ -87,3 +87,13 @@ jobs: echo "SSHD IP: $SSHD_IP" # 在這裡運行你的測試命令,並使用獲取到的 IP 地址 echo "Running tests..." + + - name: executing remote ssh commands using password (1.0.3) + uses: appleboy/ssh-action@v1.0.3 + if: always() + with: + host: ${{ steps.sshd.outputs.sshd_ip }} + username: linuxserver.io + password: password + port: 2222 + script: whoami