adaptive-lighting/scripts/update-generated-content
Adam DeMuri d964c861d5 Fix the markdown-code-runner workflow.
This fixes the workflow to work for pull requests in addition to pushes:
- Correctly determines the repository and branch
- For pull requests, if there are changes, fails with a message to make
  the changes locally
- Extracts the commands to update generated files into a script
2026-01-20 01:10:17 +00:00

11 lines
224 B
Bash
Executable file

#!/usr/bin/env bash
set -ex
cd "$(dirname "$0")/.."
uv sync --group docs
uv pip install -e .
uv run python docs/run_markdown_code_runner.py
uv run python .github/update-services.py
uv run python .github/update-strings.py