mirror of
https://github.com/JG2401/HetznerDokployLab.git
synced 2026-08-29 04:30:10 +00:00
28 lines
700 B
YAML
28 lines
700 B
YAML
name: Auto-merge Dependabot PRs
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
automerge:
|
|
if: github.event.pull_request.user.login == 'dependabot[bot]'
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Check for auto-merge label
|
|
id: check
|
|
run: |
|
|
labels=$(jq -r '.pull_request.labels[].name' "$GITHUB_EVENT_PATH" | tr '\n' ' ')
|
|
echo "labels=$labels" >> "$GITHUB_OUTPUT"
|
|
|
|
- name: Auto-merge
|
|
if: contains(steps.check.outputs.labels, 'auto-merge')
|
|
uses: fastify/github-action-merge-dependabot@v3
|
|
with:
|
|
github-token: ${{ secrets.GH_TOKEN }}
|