docs(游戏): 添加塞尔达传说游戏套装和收集品的截图文档 #50
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 | |