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
This commit is contained in:
Adam DeMuri 2026-01-18 23:52:14 -07:00 • committed by Bas Nijholt
commit d964c861d5
2 changed files with 30 additions and 28 deletions

View file

@ -0,0 +1,11 @@
#!/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