From b4b7f3965408ec85d8eb200c637a7d9bd07a4907 Mon Sep 17 00:00:00 2001 From: GurumNyang Date: Wed, 6 Nov 2024 15:16:15 +0900 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 98fc678..6a07184 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,7 +17,7 @@ jobs: # 서버로 SSH 연결을 통한 배포 - name: Deploy to server via SSH - if: secrets.SERVER_HOST && secrets.SERVER_USER && secrets.SERVER_SSH_KEY # Secret이 존재할 때만 실행 + if: ${{secrets.SERVER_HOST && secrets.SERVER_USER && secrets.SERVER_SSH_KEY}} # Secret이 존재할 때만 실행 uses: appleboy/ssh-action@master with: host: ${{ secrets.SERVER_HOST }} @@ -30,5 +30,5 @@ jobs: pm2 restart www - name: Skip deployment in fork - if: secrets.SERVER_HOST == null || secrets.SERVER_USER == null || secrets.SERVER_SSH_KEY == null + if: ${{secrets.SERVER_HOST == null || secrets.SERVER_USER == null || secrets.SERVER_SSH_KEY == null}} run: echo "Secrets not found. Skipping deployment."