Automerge Dependabot PR #343
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
# Automatically merge Dependabot PRs upon approval by leaving | |
# a comment on Dependabot's pull-request. | |
name: Automerge Dependabot PR | |
on: | |
pull_request_review: | |
types: [submitted] | |
permissions: | |
pull-requests: write | |
jobs: | |
comment: | |
if: ${{ github.event.review.state == 'approved' && github.event.pull_request.user.login == 'dependabot[bot]' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Merge Dependabot PR | |
run: gh pr comment --body "@dependabot squash and merge" "$PR_URL" | |
env: | |
PR_URL: ${{ github.event.pull_request.html_url }} | |
GITHUB_TOKEN: ${{ secrets.DEPENDABOT_AUTOMERGE_TOKEN }} |