Skip to content

Commit

Permalink
Merge branch 'master' into pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
  • Loading branch information
i13e authored Jan 6, 2025
2 parents fd24ee6 + b49f59d commit 2a3a41d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/dependabot_automerge.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
name: Dependabot auto-approve / -merge
name: Auto-approve / -merge for Dependabot and Precommit CI
on: pull_request

jobs:
dependabot:
auto_merge:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
if: ${{ github.actor == 'dependabot[bot]' }}
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ github.actor == 'dependabot[bot]' || github.actor == 'precommit-ci' }}
steps:
- name: Approve a PR
run: gh pr review --approve "$PR_URL"
- name: Enable auto-merge for Dependabot PRs
- name: Enable auto-merge for Dependabot or Precommit CI PRs
run: gh pr merge --auto --squash "$PR_URL"

0 comments on commit 2a3a41d

Please sign in to comment.