Skip to content

Commit 586639f

Browse files
committed
Add CI check for uncommitted docs changes
Signed-off-by: Timo Sand <[email protected]>
1 parent 4381e31 commit 586639f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ jobs:
2626
- run: make tools
2727
- run: make lint
2828
- run: make docs-lint
29+
30+
- name: Check for uncommitted docs changes
31+
run: |
32+
tfplugindocs generate
33+
if ![[ -z $(git status --porcelain) ]]; then
34+
echo "::error::Uncommitted changes after tfplugindocs generate"
35+
exit 1
36+
fi
2937
- run: make build
3038
- run: make test
3139

0 commit comments

Comments
 (0)