Skip to content

Enhance InitClientCertificates method description #22

Enhance InitClientCertificates method description

Enhance InitClientCertificates method description #22

Workflow file for this run

name: Docs lint
on:
pull_request:
paths:
- 'docs/**/*.md'
- 'reference/**/*.md'
- 'custom_pages/**/*.md'
- 'custom_blocks/**/*.md'
- '.github/scripts/docs-lint/**'
- '.github/workflows/docs-lint.yml'
- 'package.json'
- 'package-lock.json'
jobs:
docs-lint:
name: Lint changed docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- run: npm ci
- name: Collect changed markdown files
env:
BASE_SHA: ${{ github.event.pull_request.base.sha }}
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
run: |
git diff --name-only --diff-filter=ACMR "$BASE_SHA" "$HEAD_SHA" \
| grep -E '^(docs|reference|custom_pages|custom_blocks)/.*\.md$' \
> /tmp/changed.txt || true
echo "Markdown files in synced paths changed in this PR:"
cat /tmp/changed.txt || true
- name: Run docs lint
run: |
if [ -s /tmp/changed.txt ]; then
# -d '\n' handles paths with spaces (e.g. "The Roku Channel/...").
# Annotations are emitted because GITHUB_ACTIONS=true in CI.
xargs -d '\n' -r node .github/scripts/docs-lint/index.mjs < /tmp/changed.txt
else
echo "No markdown files in synced paths changed; nothing to lint."
fi