Документация - переместил страницы #16
This file contains 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
name: Generate README | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'docs/index.md' | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'docs/index.md' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Convert docs/index.md to README.md | |
run: | | |
python docs/scripts/gen_readme_md.py | |
- name: Commit and push changes | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add README.md | |
git commit -m "Update README.md from docs/index.md" || echo "No changes to commit" | |
git push | |
env: | |
PAT_TOKEN: ${{ secrets.PAT_TOKEN }} |