Skip to content

Commit 71f7703

Browse files
Create readme-generator.yml
1 parent ad88d69 commit 71f7703

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Auto Generate Project README
2+
3+
on:
4+
push:
5+
paths:
6+
- "*/" # Detect new folders
7+
- "!**/README.md"
8+
9+
jobs:
10+
generate-readme:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repo
15+
uses: actions/checkout@v3
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: "3.x"
21+
22+
- name: Run script
23+
run: |
24+
python .github/scripts/generate_readme.py
25+
26+
- name: Commit changes
27+
run: |
28+
git config --global user.name "ml-bot"
29+
git config --global user.email "ml-bot@users.noreply.github.com"
30+
git add .
31+
git commit -m "🤖 Auto-generate README for new project"
32+
git push

0 commit comments

Comments
 (0)