Skip to content

Commit

Permalink
Update dependabot-auto-approve.yml to dependabot-auto-merge.yml (#280)
Browse files Browse the repository at this point in the history
* Update dependabot-auto-approve.yml to dependabot-auto-merge.yml

* Auto approve pr for merge
  • Loading branch information
andreschaffer authored Sep 6, 2024
1 parent bc9c63b commit 7c48c48
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
name: Dependabot auto-approve
name: Dependabot auto-merge
on: pull_request

permissions:
contents: write
pull-requests: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == andreschaffer/http-caching-and-concurrency-examples'
steps:
- name: Dependabot metadata
id: metadata
Expand All @@ -19,3 +20,8 @@ jobs:
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 7c48c48

Please sign in to comment.