更新 linkfix.yml #2
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: linkfix | ||
on: | ||
workflow_dispatch | ||
push: | ||
paths: | ||
- 教程/示例代码/** | ||
jobs: | ||
m2p: | ||
permissions: | ||
contents: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: gh-pages | ||
- name: Fix and Push | ||
run: | | ||
git config user.name "Mdr-C-Tutorial" | ||
git config user.email "[email protected]" | ||
cd ./教程/示例代码 | ||
python linkfix.py | ||
git add . | ||
git commit -m "linkfix" | ||
git push |