diff --git a/.github/workflows/wfgy-ecosystem-stars-bot.yml b/.github/workflows/wfgy-ecosystem-stars-bot.yml index 86c07c7b..8a71f2d6 100644 --- a/.github/workflows/wfgy-ecosystem-stars-bot.yml +++ b/.github/workflows/wfgy-ecosystem-stars-bot.yml @@ -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