Skip to content

Commit

Permalink
change trigger to pr closed
Browse files Browse the repository at this point in the history
  • Loading branch information
loftwah committed Aug 23, 2024
1 parent d229936 commit 3f52741
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: Deploy

on:
workflow_run:
workflows: ["CI"]
types:
- completed
pull_request:
types: [closed]
branches:
- main
workflow_dispatch:
Expand All @@ -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
Expand Down

0 comments on commit 3f52741

Please sign in to comment.