Skip to content

Commit

Permalink
Auto-merge PRs by Dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
Gchbg committed May 6, 2024
1 parent 61cace4 commit 2091f7a
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Auto-merge

on: pull_request

permissions:
pull-requests: write
contents: write

jobs:
auto-merge:
name: Auto-merge
runs-on: ubuntu-latest
# if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }}
steps:
# - name: Check out repository
# uses: actions/checkout@v4
# with:
# ref: ${{ github.event.pull_request.head.sha }}
# - name: Collect metadata
# uses: dependabot/fetch-metadata@v2
# id: meta
- name: Set up CLI
uses: ksivamuthu/actions-setup-gh-cli@v2
- name: Enable auto-merge
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 2091f7a

Please sign in to comment.