mirror of
https://github.com/RockChinQ/QChatGPT.git
synced 2024-11-16 11:42:44 +08:00
chore: wiki同步工作流
This commit is contained in:
parent
2a414a4bea
commit
c2eaeb2c72
26
.github/workflows/sync-wiki.yml
vendored
Normal file
26
.github/workflows/sync-wiki.yml
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
name: Sync Wiki on Update
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- 'res/wiki/**'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout QChatGPT.wiki
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: RockChinQ/QChatGPT.wiki
|
||||
ref: main
|
||||
path: wiki
|
||||
- name: Copy updated files
|
||||
run: cp -R res/wiki/* wiki/
|
||||
- name: Commit and push changes
|
||||
run: |
|
||||
cd wiki/
|
||||
git config --global user.name "GitHub Action"
|
||||
git config --global user.email "action@github.com"
|
||||
git add -A
|
||||
git commit -m "Sync Wiki on update"
|
||||
git push
|
Loading…
Reference in New Issue
Block a user