Skip to content

fix: SUMMARY.md 补全任务运动规划9篇章节引用 #26

fix: SUMMARY.md 补全任务运动规划9篇章节引用

fix: SUMMARY.md 补全任务运动规划9篇章节引用 #26

name: Trigger Robotics Tutorial Wiki Deploy
on:
workflow_dispatch:
push:
branches: [main]
paths:
- '00_项目导航/**'
- '01_数学/**'
- '02_*/**'
- '03_SLAM/**'
- '04_移动机器人规控/**'
- '05_运动控制/**'
- '06_具身智能/**'
- 'SUMMARY.md'
- 'README.md'
- '.github/workflows/sync-to-robotics-tutorial-wiki.yml'
jobs:
trigger-deploy:
name: Trigger ${{ matrix.target.name }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target:
- name: Vercel
branch: master
- name: EdgeOne
branch: edgeone
steps:
- name: Checkout Robotics_Tutorial_Wiki
uses: actions/checkout@v4
with:
repository: Michael-Jetson/Robotics_Tutorial_Wiki
token: ${{ secrets.LOCOWIKI_PAT }}
ref: ${{ matrix.target.branch }}
fetch-depth: 0
path: wiki
- name: Configure git
run: |
cd wiki
git config user.name "Michael-Jetson"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Update source revision
run: |
cd wiki
mkdir -p .source-sync
cat > .source-sync/Robotics_Tutorial.yml <<EOF
source_repository: Michael-Jetson/Robotics_Tutorial
source_branch: ${{ github.ref_name }}
source_sha: ${{ github.sha }}
source_run_id: ${{ github.run_id }}
target_branch: ${{ matrix.target.branch }}
deploy_target: ${{ matrix.target.name }}
synced_at: $(date -u +"%Y-%m-%dT%H:%M:%SZ")
EOF
- name: Commit and push
run: |
cd wiki
git add .source-sync/Robotics_Tutorial.yml
if git diff --cached --quiet; then
echo "No deployment trigger changes for ${{ matrix.target.branch }}"
exit 0
fi
git commit -m "chore: trigger docs deploy from Robotics_Tutorial@${{ github.sha }}"
git push origin HEAD:${{ matrix.target.branch }}