Skip to content

Validate and automerge #852

Validate and automerge

Validate and automerge #852

Workflow file for this run

# https://github.com/marketplace/actions/merge-pull-requests-automerge-action
# Github allows automerge https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/automatically-merging-a-pull-request
# But we want to restrict it to only PR created by radixbot
name: Validate and automerge
on:
pull_request:
types:
- labeled
- unlabeled
- synchronize
- opened
- edited
- ready_for_review
- reopened
- unlocked
pull_request_review:
types:
- submitted
check_suite:
types:
- completed
status: {}
jobs:
validate-JSON:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: json-syntax-check
uses: limitusus/json-syntax-check@v2
with:
pattern: "\\.json$"
- id: automerge
name: automerge
uses: "pascalgn/automerge-action@v0.15.6"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
# Only automerge
MERGE_FILTER_AUTHOR: "radixbot"
MERGE_LABELS: ""