1
0
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:
Vasiliy Vasilyuk
2024-12-31 10:24:24 +03:00
parent 13126f2003
commit 28a36d13d1

View 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}}