Skip to content

Enable auto-merge instead of merge queue #44

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/workflows/validate-pr.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Validate PR

# https://github.com/orgs/community/discussions/51120#discussioncomment-8623798
on:
merge_group:
workflow_dispatch:
pull_request:
types: [enqueued]
types: [auto_merge_enabled]

jobs:
validate-pr:
Expand All @@ -23,3 +21,10 @@ jobs:

- name: Clean Build with Gradle
run: ./gradlew clean build

- name: Disable Auto-Merge on Fail
if: failure()
run: gh pr merge --disable-auto "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}