mirror of
https://github.com/RockChinQ/QChatGPT.git
synced 2024-11-16 19:57:04 +08:00
34 lines
771 B
YAML
34 lines
771 B
YAML
name: Update Wiki
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'res/wiki/**'
|
|
|
|
jobs:
|
|
update-wiki:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Setup Git
|
|
run: |
|
|
git config --global user.name "GitHub Actions"
|
|
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
|
- name: Clone Wiki Repository
|
|
uses: actions/checkout@v2
|
|
with:
|
|
repository: RockChinQ/QChatGPT.wiki
|
|
path: wiki
|
|
- name: Copy res/wiki content to wiki
|
|
run: |
|
|
cp -r res/wiki/* wiki/
|
|
- name: Commit and Push Changes
|
|
run: |
|
|
cd wiki
|
|
if git diff --name-only; then
|
|
git add .
|
|
git commit -m "Update wiki"
|
|
git push
|
|
fi
|