Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gurumnyang authored Nov 6, 2024
1 parent 0775d83 commit a23823f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
SERVER_HOST: ${{secrets.SERVER_HOST}}
SERVER_USER: ${{secrets.SERVER_USER}}
SERVER_SSH_KEY: ${{secrets.SERVER_SSH_KEY}}
if: ${{SERVER_HOST && SERVER_USER && SERVER_SSH_KEY}} # Secret이 존재할 때만 실행
if: ${{env.SERVER_HOST && env.SERVER_USER && env.SERVER_SSH_KEY}} # Secret이 존재할 때만 실행
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SERVER_HOST }}
Expand All @@ -38,5 +38,5 @@ jobs:
SERVER_HOST: ${{secrets.SERVER_HOST}}
SERVER_USER: ${{secrets.SERVER_USER}}
SERVER_SSH_KEY: ${{secrets.SERVER_SSH_KEY}}
if: ${{secrets.SERVER_HOST == null || secrets.SERVER_USER == null || secrets.SERVER_SSH_KEY == null}}
if: ${{env.SERVER_HOST == null || env.SERVER_USER == null || env.SERVER_SSH_KEY == null}}
run: echo "Secrets not found. Skipping deployment."

0 comments on commit a23823f

Please sign in to comment.