1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-26 04:22:05 +02:00

ci: dependabot automerge

This commit is contained in:
Carlos Alexandro Becker 2024-01-11 23:04:03 -03:00
parent 5c0c82afa2
commit 8e3b7efcfb
No known key found for this signature in database

24
.github/workflows/dependabot.yml vendored Normal file
View File

@ -0,0 +1,24 @@
name: Dependabot auto-approve and auto-merge
on: pull_request
permissions:
pull-requests: write
jobs:
dependabot:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- id: metadata
uses: dependabot/fetch-metadata@v1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- run: gh pr merge --auto --merge "$PR_URL"
if: steps.metadata.outputs.update-type == 'version-update:semver-patch'
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}