Skip to content

Feat/policies and docs #337

Feat/policies and docs

Feat/policies and docs #337

Workflow file for this run

name: Diagrams Check
on:
pull_request:
branches: [ "**" ]
jobs:
render-and-verify:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Render Mermaid diagrams
run: |
chmod +x bin/render_diagrams || true
./bin/render_diagrams || true
- name: Verify rendered PNGs are up to date
run: |
CHANGED=$(git status --porcelain -- docs/diagrams/exports/png/*.png docs/diagrams/exports/svg/*.svg | wc -l)
if [ "$CHANGED" -gt 0 ]; then
echo "Diagram exports are out of date. Please run bin/render_diagrams and commit the updated files." >&2
echo "Changed files:" >&2
git status --porcelain -- docs/diagrams/exports/png/*.png docs/diagrams/exports/svg/*.svg >&2 || true
exit 1
fi
shell: bash