Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
auto-merge patch and minor dependabot PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
finn-block committed Sep 24, 2024
1 parent c6cb128 commit 967add2
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,24 @@ jobs:
api-level: 29
script: ${{ matrix.example.tests.command }}
working-directory: ${{ matrix.example.directory }}

automerge:
name: Automerge Dependabot PRs
runs-on: ubuntu-latest
needs: [javascript, kotlin]
if: github.event.pull_request.user.login == 'dependabot[bot]'
permissions:
pull-requests: write
issues: write
repository-projects: write
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs
if: steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor'
run: gh pr merge --auto --merge "${{github.event.pull_request.html_url}}"
env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 967add2

Please sign in to comment.