Skip to content

Update docs/src/index.md #4

Update docs/src/index.md

Update docs/src/index.md #4

# .github/workflows/update-readme.yml
name: Update README from docs index
on:
push:
branches:
- dev # or your primary branch name
- docs
- master
jobs:
sync-readme:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0 # needed for pushing commits
- name: Copy docs/src/index.md → README.md
run: |
cp docs/src/index.md README.md
- name: Commit & push if changed
uses: EndBug/add-and-commit@v9
with:
author_name: github-actions
author_email: [email protected]
message: "chore: update README from docs index"
add: 'README.md'
push: true