See https://hugo.alliau.me/2021/05/04/migration-to-github-native-dependabot-solutions-for-auto-merge-and-action-secrets/#re-enable-auto-merging-with-auto-approve for a better solution for auto-approve and auto-merging Dependabot pull requests.
GitHub Action for auto-approving and auto-merging Dependabot pull requests.
This action is compatible with GitHub-native Dependabot which disabled auto-merge.
name: Auto approve
on:
pull_request
jobs:
auto-approve:
runs-on: ubuntu-latest
steps:
- uses: Yproximite/auto-approve-and-merge-dependabot-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
update-type: 'minor'