Files
HetznerDokployLab/.github/workflows/dependabotautomerge.yml
Workflow config file is invalid. Please check your config file: yaml: line 16: did not find expected '-' indicator

31 lines
715 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 }}