Skip to content

chore: Modulesync (v1.6.0-28-g21ad3f8) #16

chore: Modulesync (v1.6.0-28-g21ad3f8)

chore: Modulesync (v1.6.0-28-g21ad3f8) #16

Workflow file for this run

---
# Managed by modulesync - DO NOT EDIT
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
name: 🤖 Enable Auto-Merge
# yamllint disable-line rule:truthy
on:
pull_request_review:
types:
- submitted
permissions:
contents: read
jobs:
automerge:
name: Enable auto-merge
if: >-
github.event.review.state == 'approved' &&
(github.event.pull_request.user.login == 'dependabot[bot]' ||
github.event.pull_request.user.login == 'renovate[bot]')
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Enable auto-merge for PR
env:
GH_TOKEN: ${{ github.token }}
PR_URL: ${{ github.event.pull_request.html_url }}
PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
run: gh pr merge --auto --merge --match-head-commit "$PR_HEAD_SHA" "$PR_URL"