Bot auto-merge #16
This file contains 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: Bot auto-merge | |
on: | |
pull_request: # yamllint disable-line rule:truthy | |
workflow_run: | |
workflows: ["Black", "Coverage", "MyPy", "Pip check", "Unittest", "Unittest Lower Bound"] | |
types: [completed] | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
autobot: | |
runs-on: ubuntu-latest | |
if: (github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'pre-commit-ci[bot]') && github.event.pull_request.conclusion == 'success' && github.repository == 'pyiron/conda_subprocess' | |
steps: | |
- name: Enable auto-merge for bot PRs | |
run: gh pr merge --auto --squash "$PR_URL" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GH_TOKEN: ${{secrets.GITHUB_TOKEN}} |