Files
headscale/.github/workflows/docs-test.yml
T
Kristoffer Dalby 1dcb57cb8c .github: grant workflows only the permissions they use
The repository default token can write; set read and widen per job.
2026-11-20 19:47:15 +01:00

31 lines
710 B
YAML

name: Test documentation build
on: [pull_request]
concurrency:
group: ${{ github.workflow }}-$${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7.0.1
- name: Install python
uses: actions/setup-python@v7.1.0
with:
python-version: 3.x
- name: Setup cache
uses: actions/cache@v6.1.0
with:
key: ${{ github.ref }}
path: .cache
- name: Setup dependencies
run: pip install -r docs/requirements.txt
- name: Build docs
run: mkdocs build --strict