[pre-commit.ci] pre-commit autoupdate #90
Workflow file for this run
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
# GitHub action to automerge dependabot PRs. Only merges if tests passes the | |
# branch protections in the repository settings. | |
# You can set branch protections in the repository under Settings > Branches > Add rule | |
name: automerge-bot-prs | |
on: pull_request | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
dependabot-automerge: | |
runs-on: ubuntu-latest | |
# if actor is dependabot or pre-commit-ci[bot] then run | |
if: ${{ github.actor == 'dependabot[bot]' }} | |
steps: | |
# Checkout action is required for token to persist | |
- name: Enable auto-merge for Dependabot PRs | |
run: gh pr merge --auto --merge "$PR_URL" # Use Github CLI to merge automatically the PR | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Auto approve dependabot PRs | |
if: ${{ github.actor == 'dependabot[bot]' }} | |
uses: hmarr/auto-approve-action@v3.1.0 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} |