Skip to content

docs(canister-management): add canister migration guide, improve subnet selection, reorder sidebar #253

docs(canister-management): add canister migration guide, improve subnet selection, reorder sidebar

docs(canister-management): add canister migration guide, improve subnet selection, reorder sidebar #253

Workflow file for this run

name: Validate docs
on:
pull_request:
paths:
- 'docs/**/*.md'
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- run: npm ci
- name: Validate changed docs
run: |
BASE="${{ github.event.pull_request.base.sha }}"
HEAD="${{ github.event.pull_request.head.sha }}"
files=$(git diff --name-only --diff-filter=AM "$BASE" "$HEAD" -- 'docs/**/*.md')
if [ -z "$files" ]; then
echo "No docs files changed."
exit 0
fi
node scripts/validate.js $files