-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #207 from port-labs/docs_ci
Docs CI
- Loading branch information
Showing
6 changed files
with
62 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Validate Documentation | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
docs-check: | ||
name: Check Documentation Matches Provider Schema | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.22' | ||
cache: true | ||
|
||
- name: Install tfplugindocs | ||
run: make setup | ||
|
||
- name: Generate Documentation | ||
run: make gen-docs | ||
|
||
- name: Check for changes in docs | ||
run: | | ||
DOCS_CHANGES=$(git status --porcelain docs/) | ||
if [[ -n "${DOCS_CHANGES}" ]]; then | ||
echo "Error: Documentation is out of sync with schema. Please run 'make gen-docs' locally and commit the changes." | ||
echo "Changes detected in docs folder:" | ||
echo "${DOCS_CHANGES}" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters