Skip to content

Commit

Permalink
chore: added automerge GHA for dependabot PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
ifindlay-cci committed Dec 16, 2024
1 parent b353005 commit 0ad6c41
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/automerge-dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Automerge Dependabot

on:
pull_request_target:
types: [opened, synchronize, reopened]

jobs:
automerge:
name: Merge Dependabot Pull Pequest
runs-on: ubuntu-latest
permissions:
contents: write
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Merge
uses: actions/github-script@v6
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.rest.pulls.merge({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.issue.number,
merge_method: 'squash'
})

0 comments on commit 0ad6c41

Please sign in to comment.