更新《Yano 2025 年影视作品总结》博客,替换了一张图片以提升视觉效果。 #39
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 | |