mirror of
https://github.com/h3pdesign/Neon-Vision-Editor
synced 2026-04-21 13:27:16 +00:00
Fix clone metric refresh by passing GH token in workflow
This commit is contained in:
parent
f8ad623f1e
commit
6d083cefd9
5 changed files with 15 additions and 8 deletions
|
|
@ -26,6 +26,8 @@ jobs:
|
|||
python-version: "3.12"
|
||||
|
||||
- name: Update README metrics and chart
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: scripts/update_download_metrics.py
|
||||
|
||||
- name: Commit and push if changed
|
||||
|
|
|
|||
|
|
@ -361,7 +361,7 @@
|
|||
CODE_SIGNING_ALLOWED = YES;
|
||||
CODE_SIGN_IDENTITY = "Apple Development";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
CURRENT_PROJECT_VERSION = 413;
|
||||
CURRENT_PROJECT_VERSION = 414;
|
||||
DEAD_CODE_STRIPPING = YES;
|
||||
DEVELOPMENT_TEAM = CS727NF72U;
|
||||
ENABLE_APP_SANDBOX = YES;
|
||||
|
|
@ -444,7 +444,7 @@
|
|||
CODE_SIGNING_ALLOWED = YES;
|
||||
CODE_SIGN_IDENTITY = "Apple Development";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
CURRENT_PROJECT_VERSION = 413;
|
||||
CURRENT_PROJECT_VERSION = 414;
|
||||
DEAD_CODE_STRIPPING = YES;
|
||||
DEVELOPMENT_TEAM = CS727NF72U;
|
||||
ENABLE_APP_SANDBOX = YES;
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@
|
|||
</p>
|
||||
|
||||
<p align="center"><em>Styled line chart shows per-release totals plus a scaled 14-day git clone volume bar.</em></p>
|
||||
<p align="center">Git clones (last 14 days): <strong>1508</strong>.</p>
|
||||
<p align="center">Git clones (last 14 days): <strong>1629</strong>.</p>
|
||||
<p align="center">Snapshot total downloads: <strong>560</strong> across releases.</p>
|
||||
|
||||
## Project Docs
|
||||
|
|
|
|||
|
|
@ -78,14 +78,14 @@
|
|||
|
||||
<text x="776" y="56" fill="#D7F7FF" font-size="15" font-family="SF Pro Text, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif">Release trend line with highlighted points</text>
|
||||
<rect x="58" y="390" width="1084" height="132" rx="12" fill="#0A1A2B" stroke="#2A4762" stroke-width="1"/>
|
||||
<text x="84" y="420" fill="#E6F3FF" font-size="18" font-family="SF Pro Text, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif" font-weight="600">Git Clones (last 14 days): 1508</text>
|
||||
<text x="84" y="420" fill="#E6F3FF" font-size="18" font-family="SF Pro Text, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif" font-weight="600">Git Clones (last 14 days): 1629</text>
|
||||
<rect x="86" y="450" width="1024" height="36" rx="10" fill="#15263A" stroke="#2B4255" stroke-width="1"/>
|
||||
<line x1="86" y1="442" x2="86" y2="494" stroke="#436280" stroke-width="1"/>
|
||||
<line x1="598.0" y1="442" x2="598.0" y2="494" stroke="#436280" stroke-width="1"/>
|
||||
<line x1="1110" y1="442" x2="1110" y2="494" stroke="#436280" stroke-width="1"/>
|
||||
<rect x="86" y="450" width="965.1" height="36" rx="10" fill="url(#cloneFill)"/>
|
||||
<rect x="86" y="450" width="834.0" height="36" rx="10" fill="url(#cloneFill)"/>
|
||||
<text x="82" y="438" text-anchor="start" fill="#9CC3E6" font-size="12" font-family="SF Pro Text, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif">0</text>
|
||||
<text x="598.0" y="438" text-anchor="middle" fill="#9CC3E6" font-size="12" font-family="SF Pro Text, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif">800</text>
|
||||
<text x="1114" y="438" text-anchor="end" fill="#9CC3E6" font-size="12" font-family="SF Pro Text, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif">1600</text>
|
||||
<text x="86" y="510" fill="#9CC3E6" font-size="13" font-family="SF Pro Text, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif">Scale: 0 to 1600 clones in the last 14 days.</text>
|
||||
<text x="598.0" y="438" text-anchor="middle" fill="#9CC3E6" font-size="12" font-family="SF Pro Text, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif">1000</text>
|
||||
<text x="1114" y="438" text-anchor="end" fill="#9CC3E6" font-size="12" font-family="SF Pro Text, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif">2000</text>
|
||||
<text x="86" y="510" fill="#9CC3E6" font-size="13" font-family="SF Pro Text, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif">Scale: 0 to 2000 clones in the last 14 days.</text>
|
||||
</svg>
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 7.9 KiB |
|
|
@ -389,6 +389,11 @@ def main() -> int:
|
|||
|
||||
readme_before = README.read_text(encoding="utf-8")
|
||||
existing_clone_total = parse_existing_clone_total(readme_before)
|
||||
if clone_total_api is None:
|
||||
print(
|
||||
"Warning: clone traffic API unavailable; reusing existing README clone total.",
|
||||
file=sys.stderr,
|
||||
)
|
||||
clone_total = clone_total_api if clone_total_api is not None else (existing_clone_total or 0)
|
||||
svg = generate_svg(trend_points, clone_total, snapshot_date)
|
||||
readme_after = update_readme(
|
||||
|
|
|
|||
Loading…
Reference in a new issue