Skip to content

Workflow checks

Workflow checks #11

Workflow file for this run

name: Docs Review Check
on:
pull_request:
types:
- opened
- synchronize
- ready_for_review
- reopened
- labeled
- edited
jobs:
docs_review_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Do a test
run: |
gh pr view ${{ github.event.pull_request.number }} --json body,labels
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Check if docs-reviewed label is applied
run: |
if [[ "$(gh pr view ${{ github.event.pull_request.number }} --json labels --jq '.labels[].name')" != *"docs-reviewed"* ]]; then
echo "Docs not reviewed yet."
exit 1
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}