Skip to content

Commit 0bbc9b0

Browse files
authored
Enable auto-merge instead of merge queue (modelcontextprotocol#44)
1 parent 6662fcd commit 0bbc9b0

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/validate-pr.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
name: Validate PR
22

3-
# https://github.com/orgs/community/discussions/51120#discussioncomment-8623798
43
on:
5-
merge_group:
64
workflow_dispatch:
75
pull_request:
8-
types: [enqueued]
6+
types: [auto_merge_enabled]
97

108
jobs:
119
validate-pr:
@@ -23,3 +21,10 @@ jobs:
2321

2422
- name: Clean Build with Gradle
2523
run: ./gradlew clean build
24+
25+
- name: Disable Auto-Merge on Fail
26+
if: failure()
27+
run: gh pr merge --disable-auto "$PR_URL"
28+
env:
29+
PR_URL: ${{github.event.pull_request.html_url}}
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)