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