Auto-merge Successful PRs #2417
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Auto-merge Successful PRs | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 */4 * * *" # Every 4 hours | |
| permissions: | |
| contents: read | |
| jobs: | |
| merge-successful-prs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checking out repo | |
| uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Auto-merge pull requests if all status checks pass | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: | | |
| build-scripts/hack/auto-merge-successful-pr.py |