Skip to content

Commit

Permalink
chore(deps): auto merge dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
feinoujc committed Feb 16, 2024
1 parent 5699f59 commit 6276751
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
version: 2
updates:
- package-ecosystem: nuget
directory: "/"
schedule:
interval: daily
time: "02:00"
open-pull-requests-limit: 10
ignore:
- dependency-name: coverlet.msbuild
versions:
- 3.0.2
- package-ecosystem: "nuget"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: github-actions
directory: /
schedule:
interval: "weekly"
24 changes: 24 additions & 0 deletions .github/workflows/auto-merge-dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Dependabot auto-merge
on: pull_request

permissions:
contents: write
pull-requests: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs
# This is an example of limiting what PRs this action runs on
if: steps.metadata.outputs.update-type == 'version-update:semver-patch'
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 6276751

Please sign in to comment.