Skip to content

fix(implement): match PR author by login in PAT mode #161

fix(implement): match PR author by login in PAT mode

fix(implement): match PR author by login in PAT mode #161

Workflow file for this run

name: Docs
on:
push:
branches:
- main
paths:
- "docs/**"
- "mkdocs.yml"
- "CHANGELOG.md"
- ".github/workflows/docs.yml"
# Run on every PR (no paths filter) so code-side changes that invalidate
# doc facts — Renovate Bun bumps, src/ refactors that shift cited line
# numbers, .tool-versions updates — still trip the docs gate. The
# `Deploy to GitHub Pages` step further down stays guarded by
# `if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'`,
# so PRs validate but never publish.
pull_request:
workflow_dispatch:
permissions:
contents: write
concurrency:
group: docs-${{ github.ref }}
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: oven-sh/setup-bun@v2
with:
bun-version-file: .tool-versions
- name: Verify docs version pins
run: bun run scripts/check-docs-versions.ts
- name: Verify docs src citations
run: bun run scripts/check-docs-citations.ts
- uses: actions/setup-python@v6
with:
python-version: "3.x"
cache: pip
cache-dependency-path: docs/requirements.txt
- name: Install dependencies
run: pip install -r docs/requirements.txt
- name: Build (strict)
run: mkdocs build --strict
- name: Deploy to GitHub Pages
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
run: mkdocs gh-deploy --force