File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,28 +10,31 @@ jobs:
1010 runs-on : ubuntu-latest
1111
1212 steps :
13- - name : Checkout code
13+ - name : Checkout main repository
1414 uses : actions/checkout@v4
1515
1616 - name : Setup Node.js
1717 uses : actions/setup-node@v4
1818 with :
1919 node-version : ' 24.1.0'
2020
21- - name : Checkout Wiki
21+ - name : Checkout Wiki repository
2222 uses : actions/checkout@v4
2323 with :
2424 repository : ${{ github.repository }}.wiki
2525 path : .wiki
2626 token : ${{ secrets.GITHUB_TOKEN }}
2727
28- - name : Configure Git
29- run : |
30- git config --global user.name "github-actions[bot]"
31- git config --global user.email "github-actions[bot]@users.noreply.github.com"
32-
3328 - name : Install dependencies
3429 run : npm install
3530
36- - name : Build documentation
31+ - name : Generate documentation
3732 run : npm run docs
33+
34+ - name : Commit and push wiki changes
35+ run : |
36+ cd .wiki
37+ git config user.name "github-actions[bot]"
38+ git config user.email "github-actions[bot]@users.noreply.github.com"
39+ git add .
40+ git diff --quiet && git diff --staged --quiet || (git commit -m "Automatical update Wiki" && git push)
You can’t perform that action at this time.
0 commit comments