Skip to content

Commit fae6e98

Browse files
authored
Update documentation.yml
1 parent cc3e191 commit fae6e98

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

.github/workflows/documentation.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)