Skip to content

Commit 22d151b

Browse files
ci: add merge group to ci triggers (#1355)
1 parent deaf519 commit 22d151b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: Node.js CI
33
on:
44
pull_request:
55
branches: ['**']
6+
merge_group:
7+
types: [checks_requested]
68

79
jobs:
810
verify_files:
@@ -38,6 +40,7 @@ jobs:
3840
e2e_tests:
3941
name: Playwright Tests
4042
runs-on: ubuntu-latest
43+
if: ${{github.event.action != 'checks_requested'}}
4144
permissions:
4245
contents: read
4346

@@ -121,6 +124,7 @@ jobs:
121124
bundle_size:
122125
name: Check Bundle Size
123126
runs-on: ubuntu-latest
127+
if: ${{github.event.action != 'checks_requested'}}
124128
outputs:
125129
current_size: ${{ steps.current_size.outputs.size }}
126130
main_size: ${{ steps.main_size.outputs.size }}
@@ -183,7 +187,7 @@ jobs:
183187
deploy_and_update:
184188
name: Deploy and Update PR
185189
needs: [e2e_tests, bundle_size]
186-
if: always() && github.event.pull_request.head.repo.full_name == github.repository
190+
if: ${{always() && github.event.pull_request.head.repo.full_name == github.repository && github.event.action != 'checks_requested'}}
187191
runs-on: ubuntu-latest
188192
permissions:
189193
contents: write

.github/workflows/pr-title.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@ on:
77
- synchronize
88
- reopened
99
- edited
10+
merge_group:
11+
types: [checks_requested]
1012

1113
jobs:
1214
verify_title:
1315
name: Verify Title
1416
runs-on: ubuntu-latest
17+
if: ${{github.event.action != 'checks_requested'}}
1518
steps:
1619
- name: Checkout
1720
uses: actions/checkout@v4

0 commit comments

Comments
 (0)