We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a9dc55 commit cd7de7aCopy full SHA for cd7de7a
.github/workflows/validate-pr.yml
@@ -1,11 +1,9 @@
1
name: Validate PR
2
3
-# https://github.com/orgs/community/discussions/51120#discussioncomment-8623798
4
on:
5
- merge_group:
6
workflow_dispatch:
7
pull_request:
8
- types: [enqueued]
+ types: [auto_merge_enabled]
9
10
jobs:
11
validate-pr:
@@ -23,3 +21,10 @@ jobs:
23
21
24
22
- name: Clean Build with Gradle
25
run: ./gradlew clean build
+
+ - 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