-
Notifications
You must be signed in to change notification settings - Fork 22
26 lines (23 loc) · 824 Bytes
/
dependabot.yml
File metadata and controls
26 lines (23 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: Merge dependabot PRs automatically
on: pull_request_target
permissions:
pull-requests: write
contents: write
env:
blocker_files: rbs-inline.gemspec Gemfile
jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }}
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Abort if blocker files are changed
run: git diff --exit-code ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} -- ${{ env.blocker_files }}
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}