mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-27 04:14:47 +02:00
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:
parent
f7a7226fdb
commit
d964c861d5
2 changed files with 30 additions and 28 deletions
11
scripts/update-generated-content
Executable file
11
scripts/update-generated-content
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue