Skip to content

Commit 7efef91

Browse files
authored
Add a CI step for checking docs diff (#53)
1 parent 994e28f commit 7efef91

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ jobs:
3838
run: |
3939
cd ts/${{ matrix.package }}
4040
npm run lint-license
41+
- name: Generate docs diff
42+
if: matrix.package == 'kpt-functions'
43+
run: |
44+
cd ts/${{ matrix.package }}
45+
npm run gen-docs
46+
DIFF=$(git status -s)
47+
[[ -z $DIFF ]] || { echo "Need to update docs: $DIFF"; exit 1; }
4148
4249
go-ci:
4350
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)