Skip to content

Update condition for automerge workflow #1

Update condition for automerge workflow

Update condition for automerge workflow #1

Workflow file for this run

name: Auto-merge bot PRs
on: pull_request
permissions:
contents: write
pull-requests: write
jobs:
automerge:
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 == 'sgibson91/github-activity-dashboard'
steps:
- name: Enable auto-merge for bot PRs
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}