-
Notifications
You must be signed in to change notification settings - Fork 160
41 lines (34 loc) · 1.29 KB
/
wfgy-ecosystem-bot.yml
File metadata and controls
41 lines (34 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: WFGY Ecosystem Bot
on:
workflow_dispatch:
schedule:
- cron: "0 3 * * *"
jobs:
ecosystem-scan:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Generate ecosystem report
run: |
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 automation/ecosystem-report.md
git commit -m "bot: update ecosystem report" || echo "no changes"
git push