-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (55 loc) · 1.54 KB
/
update-reports.yml
File metadata and controls
65 lines (55 loc) · 1.54 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Update Reports
on:
schedule:
# Run every Monday at 9 AM ET (14:00 UTC)
- cron: '0 14 * * 1'
push:
branches:
- main
paths:
- 'reports/*.py'
- 'reports/pyproject.toml'
workflow_dispatch:
jobs:
update-reports:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "0.9.*"
enable-cache: true
- name: Generate config data
working-directory: reports
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: uv run generate_config.py
- name: Generate commit data
working-directory: reports
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: uv run main.py
- name: Generate plot
working-directory: reports
run: uv run plot.py
- name: Generate docs page
working-directory: reports
run: uv run generate_docs.py
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7.0.11
with:
commit-message: "Update reports for ${{ github.run_id }}"
title: "Update reports"
body: |
Automated update of commit reports and visualization.
Generated by GitHub Actions workflow.
branch: update-reports
add-paths: |
reports/output/
docs/images/
docs/objectives.md