-
-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(docs): Require up-to-date function docs
Signed-off-by: Dave Henderson <[email protected]>
- Loading branch information
1 parent
ab982b5
commit 911e28c
Showing
2 changed files
with
27 additions
and
1 deletion.
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,23 @@ | ||
name: Docs Checks | ||
on: | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
check-func-docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install gomplate | ||
run: | | ||
docker create --name gomplate hairyhenderson/gomplate | ||
docker cp gomplate:/gomplate . | ||
sudo mv gomplate /usr/local/bin | ||
- name: Make sure function docs are up-to-date | ||
run: | | ||
make --always-make gen-func-docs | ||
git diff --exit-code | ||
if [ $? -ne 0 ]; then | ||
echo "Function docs are out of date. Please run 'make gen-func-docs' locally and commit the 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