Skip to content

Commit ef75b1f

Browse files
committed
Update GitHub Actions workflow to trigger on pull request reviews and check for approval before running tests
1 parent 96a8e67 commit ef75b1f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/mcp-ci.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
name: Browserstack MCP CI
22

33
on:
4-
pull_request:
5-
branches:
6-
- main
7-
types: [closed]
4+
pull_request_review:
5+
types: [submitted]
86

97

108
jobs:
119
test:
12-
if: github.event.pull_request.merged == true
10+
if: github.event.pull_request.base.ref == 'main' && github.event.review.state == 'approved'
1311
runs-on: ubuntu-latest
1412

1513
strategy:

0 commit comments

Comments
 (0)