mirror of
https://github.com/Tencent/ncnn.git
synced 2026-10-20 07:21:49 +08:00
ea028c5398
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>
33 lines
818 B
YAML
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
|