diff --git a/.github/workflows/update-download-metrics.yml b/.github/workflows/update-download-metrics.yml index 87d582b..80317f5 100644 --- a/.github/workflows/update-download-metrics.yml +++ b/.github/workflows/update-download-metrics.yml @@ -4,7 +4,9 @@ on: release: types: [published] schedule: - - cron: "17 6 * * *" + - cron: "17 5 * * *" + - cron: "17 11 * * *" + - cron: "17 17 * * *" workflow_dispatch: permissions: diff --git a/Neon Vision Editor.xcodeproj/project.pbxproj b/Neon Vision Editor.xcodeproj/project.pbxproj index 0a974e3..ab33ece 100644 --- a/Neon Vision Editor.xcodeproj/project.pbxproj +++ b/Neon Vision Editor.xcodeproj/project.pbxproj @@ -361,7 +361,7 @@ CODE_SIGNING_ALLOWED = YES; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 443; + CURRENT_PROJECT_VERSION = 444; 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 = 443; + CURRENT_PROJECT_VERSION = 444; DEAD_CODE_STRIPPING = YES; DEVELOPMENT_TEAM = CS727NF72U; ENABLE_APP_SANDBOX = YES; diff --git a/README.md b/README.md index 81e69fd..d0a3b55 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@

Styled line chart shows per-release totals plus a scaled 14-day git clone volume bar.

-

Git clones (last 14 days): 1629.

+

Git clones (last 14 days): 1965.

Snapshot total downloads: 571 across releases.

## Project Docs diff --git a/docs/images/release-download-trend.svg b/docs/images/release-download-trend.svg index f4926e2..dabc526 100644 --- a/docs/images/release-download-trend.svg +++ b/docs/images/release-download-trend.svg @@ -78,12 +78,12 @@ Release trend line with highlighted points - Git Clones (last 14 days): 1629 + Git Clones (last 14 days): 1965 - + 0 1000 2000 diff --git a/scripts/update_download_metrics.py b/scripts/update_download_metrics.py index 58f46b2..61065d7 100755 --- a/scripts/update_download_metrics.py +++ b/scripts/update_download_metrics.py @@ -15,6 +15,7 @@ import math import os import pathlib import re +import subprocess import sys import urllib.request from dataclasses import dataclass @@ -90,7 +91,20 @@ def fetch_clone_traffic() -> tuple[list[ClonePoint], int | None]: try: payload = github_api_get(CLONES_API_URL) except Exception: - return [], None + payload = None + if payload is None: + # Local fallback: reuse authenticated gh CLI when direct API auth is unavailable. + try: + out = subprocess.run( + ["gh", "api", f"repos/{OWNER}/{REPO}/traffic/clones"], + check=True, + capture_output=True, + text=True, + timeout=20, + ) + payload = json.loads(out.stdout) + except Exception: + return [], None if not isinstance(payload, dict): return [], None