Skip to content

Commit 577cbbf

Browse files
authored
Update GitHub Actions workflow for documentation generation
1 parent b835379 commit 577cbbf

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/documentation.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- '**'
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
build-docs:
1013
runs-on: ubuntu-latest
@@ -62,9 +65,10 @@ jobs:
6265
git config --global user.email "github-actions[bot]@users.noreply.github.com"
6366
6467
- name: Generate documentation
65-
run: npm run docs
68+
run: npm run docs:generate
6669

6770
- name: Commit and push wiki changes
6871
run: |
6972
cd .wiki
70-
git diff --quiet && git diff --staged --quiet || echo "Changes already committed by docs script"
73+
git add .
74+
git diff --quiet && git diff --staged --quiet || (git commit -m "Automatical update Wiki" && git push)

0 commit comments

Comments
 (0)