Skip to content

auto-merge

auto-merge #1

Workflow file for this run

name: auto-merge
on:
workflow_run:
workflows: [reviewdog]
types: [completed]
permissions:
contents: write
pull-requests: write
jobs:
on-success:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Enable auto-merge
run: gh pr merge --auto --delete-branch --merge "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}