From c3880e2d67ed53f48b4f22578129060a2b8d0b23 Mon Sep 17 00:00:00 2001 From: Bae KwonHan Date: Sun, 9 Mar 2025 15:30:38 +0900 Subject: [PATCH] fix deployment condition --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 576711e..4e18383 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -9,7 +9,7 @@ on: jobs: deploy: runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'success' }} + if: ${{ github.event.workflow_run.conclusion == 'success' && github.ref == 'refs/heads/main' }} steps: - name: executing remote ssh commands for update uses: appleboy/ssh-action@v1.2.1