mirror of
https://github.com/JG2401/HetznerDokployLab.git
synced 2026-08-28 20:20:15 +00:00
31 lines
741 B
YAML
31 lines
741 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: Debug token presence
|
|
run: |
|
|
if [ -z "${{ secrets.GITHUB_TOKEN }}" ]; then
|
|
echo "TOKEN IS EMPTY"
|
|
exit 1
|
|
else
|
|
echo "TOKEN EXISTS"
|
|
fi
|
|
|
|
- name: Auto-merge
|
|
if: contains(github.event.pull_request.labels.*.name, 'auto-merge')
|
|
uses: fastify/github-action-merge-dependabot@v3
|
|
with:
|
|
github-token: ${{ secrets.GH_TOKEN }}
|