22 lines
637 B
YAML
22 lines
637 B
YAML
name: Validate PR Body
|
|
|
|
on:
|
|
push:
|
|
branches: '**'
|
|
pull_request:
|
|
branches: [ main, develop, canary ]
|
|
types: [synchronize]
|
|
|
|
jobs:
|
|
check_pr:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- name: Extract branch name
|
|
shell: bash
|
|
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
|
|
id: extract_branch
|
|
- name: Check PR Body
|
|
uses: JJ/github-pr-contains-action@releases/v10
|
|
with:
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
bodyDoesNotContain: "[\"|`]"
|