mirror of
https://github.com/onestardao/WFGY.git
synced 2026-04-28 03:29:51 +00:00
Update wfgy-ecosystem-bot.yml
This commit is contained in:
parent
a818022709
commit
06c8bd61d0
1 changed files with 14 additions and 12 deletions
26
.github/workflows/wfgy-ecosystem-bot.yml
vendored
26
.github/workflows/wfgy-ecosystem-bot.yml
vendored
|
|
@ -18,22 +18,24 @@ jobs:
|
|||
|
||||
- name: Generate ecosystem report
|
||||
run: |
|
||||
echo "# WFGY Ecosystem Scan" > ecosystem-report.md
|
||||
echo "" >> ecosystem-report.md
|
||||
echo "Generated at: $(date -u)" >> ecosystem-report.md
|
||||
echo "" >> ecosystem-report.md
|
||||
echo "## Repo snapshot" >> ecosystem-report.md
|
||||
echo "" >> ecosystem-report.md
|
||||
echo "File count:" >> ecosystem-report.md
|
||||
find . -type f | wc -l >> ecosystem-report.md
|
||||
echo "" >> ecosystem-report.md
|
||||
echo "Top directories:" >> ecosystem-report.md
|
||||
ls -1 >> ecosystem-report.md
|
||||
mkdir -p automation
|
||||
|
||||
echo "# WFGY Ecosystem Scan" > automation/ecosystem-report.md
|
||||
echo "" >> automation/ecosystem-report.md
|
||||
echo "Generated at: $(date -u)" >> automation/ecosystem-report.md
|
||||
echo "" >> automation/ecosystem-report.md
|
||||
echo "## Repo snapshot" >> automation/ecosystem-report.md
|
||||
echo "" >> automation/ecosystem-report.md
|
||||
echo "File count:" >> automation/ecosystem-report.md
|
||||
find . -type f | wc -l >> automation/ecosystem-report.md
|
||||
echo "" >> automation/ecosystem-report.md
|
||||
echo "Top directories:" >> automation/ecosystem-report.md
|
||||
ls -1 >> automation/ecosystem-report.md
|
||||
|
||||
- name: Commit report
|
||||
run: |
|
||||
git config user.name "wfgy-ecosystem-bot"
|
||||
git config user.email "actions@users.noreply.github.com"
|
||||
git add ecosystem-report.md
|
||||
git add automation/ecosystem-report.md
|
||||
git commit -m "bot: update ecosystem report" || echo "no changes"
|
||||
git push
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue