Files
ncnn/.github/workflows/sync-wiki.yml
dependabot[bot] ea028c5398 Bump actions/checkout from 6 to 7 (#6785)
Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-22 10:33:09 +08:00

33 lines
818 B
YAML

name: sync-wiki
on:
push:
branches: [master]
paths:
- '.github/workflows/sync-wiki.yml'
- 'docs/**'
concurrency:
group: sync-wiki-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
sync-wiki:
permissions:
contents: write # for Git to git push
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: sync
run: |
cp -r docs $GITHUB_WORKSPACE/ncnn.wiki
cd $GITHUB_WORKSPACE/ncnn.wiki
git config --global user.name "wiki-sync-bot"
git config --global user.email "wiki-sync-bot@qq.com"
git init
git add .
git commit -m "sync"
git remote add upstream https://${{ secrets.WIKI_SYNC_BOT_TOKEN }}@github.com/Tencent/ncnn.wiki.git
git push upstream master -f