更新《Notion AI 的杀手锏》博客,优化图片展示方式,去除居中对齐样式,增强整体视觉效果和可读性。 #32
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
| name: Update README navigation | |
| on: | |
| push: | |
| paths: | |
| - "**/*.md" | |
| - ".github/workflows/update-readme-nav.yml" | |
| - "scripts/update_readme_nav.py" | |
| permissions: | |
| contents: write | |
| jobs: | |
| update-nav: | |
| if: github.actor != 'github-actions[bot]' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.x" | |
| - name: Update README navigation | |
| run: python scripts/update_readme_nav.py | |
| - name: Commit changes | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| if git status --porcelain README.md | grep README.md; then | |
| git add README.md | |
| git commit -m "chore: update README nav" | |
| git push | |
| fi | |