diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7813897..f934378 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,10 +1,8 @@ name: Deploy on: - workflow_run: - workflows: ["CI"] - types: - - completed + pull_request: + types: [closed] branches: - main workflow_dispatch: @@ -19,8 +17,8 @@ jobs: runs-on: ubuntu-latest if: | github.event_name == 'workflow_dispatch' || - (github.event.workflow_run.conclusion == 'success' && - github.event.workflow_run.head_branch == 'main') + (github.event.pull_request.merged == true && + github.event.pull_request.base.ref == 'main') steps: - name: Checkout code