Skip to content

Commit

Permalink
Create automerge.yml (#516)
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen authored Dec 9, 2024
1 parent 32864a3 commit 27207d8
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Bot auto-merge
on: pull_request # yamllint disable-line rule:truthy

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.repository == 'pyiron/executorlib'
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}}

0 comments on commit 27207d8

Please sign in to comment.