Skip to content

Validate and automerge #926

Validate and automerge

Validate and automerge #926

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/[email protected]"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
# Only automerge
MERGE_FILTER_AUTHOR: "radixbot"
MERGE_LABELS: ""