mirror of
https://github.com/BluemediaDev/fancy-gatus.git
synced 2025-07-01 09:22:41 +02:00
Auto-merge dependabot PRs for patch version updates
This commit is contained in:
parent
a7148989e2
commit
412b3db81a
1 changed files with 23 additions and 0 deletions
23
.github/workflows/dependabot-auto-merge.yml
vendored
Normal file
23
.github/workflows/dependabot-auto-merge.yml
vendored
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
name: Dependabot auto-merge
|
||||||
|
on: pull_request
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
dependabot:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'BluemediaDev/fancy-gatus'
|
||||||
|
steps:
|
||||||
|
- name: Dependabot metadata
|
||||||
|
id: metadata
|
||||||
|
uses: dependabot/fetch-metadata@v2
|
||||||
|
with:
|
||||||
|
github-token: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
|
- name: Enable auto-merge for Dependabot PRs
|
||||||
|
if: steps.metadata.outputs.update-type == 'version-update:semver-patch'
|
||||||
|
run: gh pr merge --auto --merge "$PR_URL"
|
||||||
|
env:
|
||||||
|
PR_URL: ${{github.event.pull_request.html_url}}
|
||||||
|
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
Loading…
Add table
Add a link
Reference in a new issue