We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e04d5ba commit b4b7f39Copy full SHA for b4b7f39
.github/workflows/main.yml
@@ -17,7 +17,7 @@ jobs:
17
18
# 서버로 SSH 연결을 통한 배포
19
- name: Deploy to server via SSH
20
- if: secrets.SERVER_HOST && secrets.SERVER_USER && secrets.SERVER_SSH_KEY # Secret이 존재할 때만 실행
+ if: ${{secrets.SERVER_HOST && secrets.SERVER_USER && secrets.SERVER_SSH_KEY}} # Secret이 존재할 때만 실행
21
uses: appleboy/ssh-action@master
22
with:
23
host: ${{ secrets.SERVER_HOST }}
@@ -30,5 +30,5 @@ jobs:
30
pm2 restart www
31
32
- name: Skip deployment in fork
33
- 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}}
34
run: echo "Secrets not found. Skipping deployment."
0 commit comments