Skip to content

Commit 95c68f4

Browse files
CI : auto comit docs changes (#177)
* CI : auto comit docs changes * removed check for changes in docs Signed-off-by: NeelParihar <neel@terminusdb.com>
1 parent a682228 commit 95c68f4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,12 @@ jobs:
3939
- name: Lint
4040
run: npm run lint:check
4141
- name: Check for changes to docs
42-
run: |
43-
npm run mkdocs
44-
git diff --exit-code
42+
run: npm run mkdocs
43+
- name: Auto commit docs changes if any
44+
uses: stefanzweifel/git-auto-commit-action@v4
45+
with:
46+
commit_message: Apply docs changes
47+
file_pattern: docs/api/*.md
4548
- name: Genrate test coverage report
4649
run: npm run coveralls-after
4750
- name: Update coveralls

.husky/pre-commit

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,3 @@ npm test;
1010
# Build
1111
npm run build
1212

13-
# Check changes in docs
14-
npm run mkdocs;
15-
git diff --exit-code

0 commit comments

Comments
 (0)