Skip to content

Commit b4b7f39

Browse files
authored
Update main.yml
1 parent e04d5ba commit b4b7f39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
# 서버로 SSH 연결을 통한 배포
1919
- name: Deploy to server via SSH
20-
if: secrets.SERVER_HOST && secrets.SERVER_USER && secrets.SERVER_SSH_KEY # Secret이 존재할 때만 실행
20+
if: ${{secrets.SERVER_HOST && secrets.SERVER_USER && secrets.SERVER_SSH_KEY}} # Secret이 존재할 때만 실행
2121
uses: appleboy/ssh-action@master
2222
with:
2323
host: ${{ secrets.SERVER_HOST }}
@@ -30,5 +30,5 @@ jobs:
3030
pm2 restart www
3131
3232
- name: Skip deployment in fork
33-
if: secrets.SERVER_HOST == null || secrets.SERVER_USER == null || secrets.SERVER_SSH_KEY == null
33+
if: ${{secrets.SERVER_HOST == null || secrets.SERVER_USER == null || secrets.SERVER_SSH_KEY == null}}
3434
run: echo "Secrets not found. Skipping deployment."

0 commit comments

Comments
 (0)