Skip to content

ci: add markdown linter and change to ubuntu 20.04 github runner #27

ci: add markdown linter and change to ubuntu 20.04 github runner

ci: add markdown linter and change to ubuntu 20.04 github runner #27

name: Bot Auto-Approve and Merge
on: pull_request
permissions:
contents: write
pull-requests: write
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' || github.actor == 'github-action[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Auto-approve bot PR
run: gh pr review --approve "$PR_URL"
- name: Auto-merge bot PRs
run: gh pr merge --auto --merge "$PR_URL"