-
Notifications
You must be signed in to change notification settings - Fork 8
55 lines (46 loc) · 1.68 KB
/
weekly-refresh.yml
File metadata and controls
55 lines (46 loc) · 1.68 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
name: Weekly Refresh
on:
schedule:
- cron: "17 9 * * 1"
workflow_dispatch:
permissions:
contents: write
jobs:
refresh:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Refresh Tutorial Snapshots
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
python scripts/refresh_tutorial_snapshots.py
- name: Verify Tutorial Sources
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
python scripts/verify_tutorial_sources.py
- name: Regenerate Repository Docs Assets
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
python scripts/generate_tutorial_manifest.py
python scripts/update_tutorials_readme_snapshot.py
python scripts/update_repo_status_docs.py
python scripts/generate_discoverability_assets.py
python scripts/refresh_market_signals.py
python scripts/staleness_audit.py --max-age-days 10 --json-output discoverability/staleness-report.json
python scripts/release_claims_audit.py --max-age-days 120 --json-output discoverability/release-claims-report.json
- name: Commit and push if changed
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add -A
git diff --cached --quiet && echo "No changes to commit" && exit 0
git commit -m "chore: weekly docs/discoverability refresh"
git push