Update docs/src/index.md #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # .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 |