Skip to content

Commit

Permalink
Merge pull request #1034 from opentripplanner/use-automerge-action
Browse files Browse the repository at this point in the history
Use automerge action
  • Loading branch information
binh-dam-ibigroup authored Oct 16, 2023
2 parents 8c28871 + a470e7b commit e9bd101
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ jobs:
auto-approve-and-automerge:
# sources:
# https://github.com/hmarr/auto-approve-action
# https://github.com/marketplace/actions/enable-github-automerge
# https://github.com/marketplace/actions/enable-pull-request-automerge#dependabot-example
runs-on: ubuntu-latest
permissions:
pull-requests: write
if: github.actor == 'dependabot[bot]'
steps:
- uses: actions/checkout@v2
- name: Auto-approve PR
uses: hmarr/auto-approve-action@v3
- name: Enable auto-merge
run: gh pr merge --merge --auto ${{ github.event.pull_request.number }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: alexwilson/enable-github-automerge-action@main
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit e9bd101

Please sign in to comment.