mirror of
https://github.com/onestardao/WFGY.git
synced 2026-04-28 03:29:51 +00:00
Move ecosystem metrics to automation directory
This commit is contained in:
parent
06c8bd61d0
commit
5bb51638ef
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue