You've already forked testing-go-code-with-postgres
mirror of
https://github.com/xorcare/testing-go-code-with-postgres.git
synced 2025-06-30 23:23:40 +02:00
Add auto-merge for Dependabot PRs
This will make it easier to maintain the repository. Since this is a demo project, it is enough to pass CI to update the dependency. Do not mindlessly copy this approach to projects on which other projects depend.
This commit is contained in:
16
.github/workflows/dependabot-auto-merge.yml
vendored
Normal file
16
.github/workflows/dependabot-auto-merge.yml
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
---
|
||||
name: Dependabot auto-merge
|
||||
on: pull_request
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
auto-merge:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.actor == 'dependabot[bot]'
|
||||
steps:
|
||||
- name: Enable auto-merge for Dependabot PRs
|
||||
run: gh pr merge --auto --merge "${{ github.event.pull_request.html_url }}"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
Reference in New Issue
Block a user