mirror of
https://github.com/ReScienceLab/opc-skills.git
synced 2026-09-14 18:03:27 +08:00
6f1d65ca40
* feat(website): display skill installation counts from skills.sh (#13) - Add scripts/fetch-install-stats.py to scrape install counts - Add GitHub Action to run daily and update install-stats.json - Update worker.js to show install count badges on skill cards and detail pages - Generate initial install-stats.json Closes #12 * feat(blog): add FAQPage schema and dateModified for GEO optimization - Add FAQ items to blog posts 2 & 3 (domain-hunting, what-is-opc) - Add dateModified field to all blog posts for freshness signals - Add additional citations to improve AI search visibility
37 lines
1021 B
YAML
37 lines
1021 B
YAML
name: Fetch Install Stats
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 6 * * *' # Daily at 6 AM UTC
|
|
workflow_dispatch: # Manual trigger
|
|
|
|
jobs:
|
|
fetch-stats:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.12'
|
|
|
|
- name: Fetch install stats
|
|
run: python3 scripts/fetch-install-stats.py > website/install-stats.json
|
|
|
|
- name: Check for changes
|
|
id: diff
|
|
run: |
|
|
git diff --quiet website/install-stats.json || echo "changed=true" >> $GITHUB_OUTPUT
|
|
|
|
- name: Commit and push if changed
|
|
if: steps.diff.outputs.changed == 'true'
|
|
run: |
|
|
git config user.name "github-actions[bot]"
|
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
git add website/install-stats.json
|
|
git commit -m "chore: update install stats from skills.sh"
|
|
git push
|