Skip to content

Commit 0263009

Browse files
authored
Create readme-reflect.yml
1 parent 03892b7 commit 0263009

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# .github/workflows/update-readme.yml
2+
name: Update README from docs index
3+
4+
on:
5+
push:
6+
branches:
7+
- main # or your primary branch name
8+
9+
jobs:
10+
sync-readme:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Check out code
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0 # needed for pushing commits
18+
19+
- name: Copy docs/src/index.md → README.md
20+
run: |
21+
cp docs/src/index.md README.md
22+
23+
- name: Commit & push if changed
24+
uses: EndBug/add-and-commit@v9
25+
with:
26+
author_name: github-actions
27+
author_email: [email protected]
28+
message: "chore: update README from docs index"
29+
add: 'README.md'
30+
push: true

0 commit comments

Comments
 (0)