Merge Bot #117
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: Merge Bot | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| checks: read | |
| concurrency: | |
| group: merge-bot | |
| cancel-in-progress: false | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| # Run every 2 hours, offset from the package scanner to avoid overlap | |
| - cron: '17 1,3,5,7,9,11,13,15,17,19,21,23 * * *' | |
| jobs: | |
| merge-eligible-prs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: log start | |
| run: echo "Workflow merge_bot started at $(date -u +'%Y-%m-%dT%H:%M:%SZ')" | |
| - name: checkout code | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 | |
| - name: merge eligible PRs | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| GH_REPO: ${{ github.repository }} | |
| run: ./hack/merge-bot | |
| - name: log end | |
| if: always() | |
| run: echo "Workflow merge_bot ended at $(date -u +'%Y-%m-%dT%H:%M:%SZ')" |