Skip to content

Create dependabot-automerge.yml #26

Create dependabot-automerge.yml

Create dependabot-automerge.yml #26

name: Dependabot Automerge
on: pull_request
permissions:
contents: write
jobs:
dependabot-automerge:
runs-on: ubuntu-latest
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{ github.token }}
steps:
- name: describe for '${{ github.event.pull_request.title }}'
run: |
printf "github.actor == '%s'\n" "${{ github.actor }}"

Check failure on line 16 in .github/workflows/dependabot-automerge.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/dependabot-automerge.yml

Invalid workflow file

You have an error in your yaml syntax on line 16
- name: merge
run: gh pr merge --auto --squash --delete-branch "$PR_URL"
if: ${{ github.actor == 'dependabot[bot]'
}}