name: Validate PR Body

on:
    push:
        branches: '**'
    pull_request:
        branches: [ main, develop, canary ]
        types: [synchronize]

jobs:
    check_pr:
        runs-on: ubuntu-latest
        steps:
            - name: Check PR Body
              uses: JJ/github-pr-contains-action@releases/v10
              with:
                  github-token: ${{ secrets.GITHUB_TOKEN }}
                  bodyDoesNotContain: "[\"|`]"
