Skip to content

Commit

Permalink
Create auto-merge-github-actions.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
spy86 authored Jun 4, 2024
1 parent 012abec commit a4258ce
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/auto-merge-github-actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Auto Merge GitHub Actions
on:
pull_request:
types:
- opened
- synchronize
jobs:
auto-merge:
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'dependabot[bot]' && contains(github.event.pull_request.head.ref, 'dependabot/github_actions/')
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Auto approve
uses: hmarr/auto-approve-action@v2.0.0
with:
github-token: ${{ secrets.GH_TOKEN }}
- name: Merge pull request
uses: pascalgn/automerge-action@v0.14.3
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

0 comments on commit a4258ce

Please sign in to comment.