mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-21 00:47:18 +08:00
ci: add dependabot automerge workflow
This commit is contained in:
parent
56c10ee930
commit
846ae3a70c
1 changed files with 25 additions and 0 deletions
25
.github/workflows/dependabot-automerge.yaml
vendored
Normal file
25
.github/workflows/dependabot-automerge.yaml
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
name: Dependabot automerge
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, synchronize]
|
||||
|
||||
jobs:
|
||||
automerge:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.actor == 'dependabot[bot]'
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
steps:
|
||||
- name: Fetch Dependabot metadata
|
||||
id: metadata
|
||||
uses: dependabot/fetch-metadata@v3
|
||||
|
||||
- name: Enable auto-merge for github-actions updates
|
||||
if: steps.metadata.outputs.package-ecosystem == 'github_actions'
|
||||
run: gh pr merge --auto --squash "$PR_URL"
|
||||
env:
|
||||
PR_URL: ${{ github.event.pull_request.html_url }}
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
Loading…
Reference in a new issue