Skip to content

Commit

Permalink
Dependabot: configure monthly updates for gem dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
orien committed Dec 8, 2023
1 parent e9327b8 commit e9d9dea
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 2
updates:
- directory: /
package-ecosystem: bundler
versioning-strategy: lockfile-only
allow:
- dependency-type: all
schedule:
interval: monthly
open-pull-requests-limit: 50
groups:
ruby:
patterns:
- '*'
commit-message:
prefix: Dependabot
26 changes: 26 additions & 0 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Dependabot auto-merge

on:
pull_request_target:
paths:
- Gemfile.lock

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
run: gh pr merge "$PR_URL" --auto --squash
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit e9d9dea

Please sign in to comment.