Skip to content

Commit f02b7cc

Browse files
authored
Merge branch 'main' into feature/fix_sse_client_endpoint
2 parents 53421f5 + cd7de7a commit f02b7cc

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/validate-pr.yml

Lines changed: 8 additions & 3 deletions
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)