-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 937 Bytes
/
examples.yml
File metadata and controls
34 lines (31 loc) · 937 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Generate examples
on:
workflow_dispatch:
push:
paths:
- "scripts/generate_examples/examples.yml"
- "scripts/generate_examples/run.py"
- ".github/workflows/examples.yml"
permissions:
contents: write
jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- uses: astral-sh/setup-uv@v5
- name: Install dependencies
run: uv sync --extra dev
- name: Generate outputs
run: |
uv run scripts/generate_examples/run.py
- name: Commit changes
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add examples/
git commit -m "Regenerate example outputs" || echo "No changes to commit"
git push