diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4e18383..b7d127c 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' && github.ref == 'refs/heads/main' }} + if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'main' }} steps: - name: executing remote ssh commands for update uses: appleboy/ssh-action@v1.2.1