Move ecosystem metrics to automation directory

This commit is contained in:
PSBigBig + MiniPS 2026-03-08 16:37:19 +08:00 committed by GitHub
parent 06c8bd61d0
commit 5bb51638ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,6 +17,8 @@ jobs:
- name: Fetch repo metrics
run: |
mkdir -p automation
curl -s https://api.github.com/repos/onestardao/WFGY > repo.json
STARS=$(cat repo.json | jq .stargazers_count)
@ -35,12 +37,12 @@ jobs:
echo "Forks: $FORKS"
echo "Open issues: $ISSUES"
echo "Watchers: $WATCHERS"
} > ecosystem-metrics.md
} > automation/ecosystem-metrics.md
- name: Commit metrics
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add ecosystem-metrics.md
git add automation/ecosystem-metrics.md
git diff --staged --quiet || git commit -m "bot: update ecosystem metrics"
git push