-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Workflow and update cli documentation #6414
base: main
Are you sure you want to change the base?
Conversation
cli/README.md
Outdated
@@ -31,3 +31,5 @@ go run ./cli start dev-project | |||
## Generating CLI reference docs | |||
|
|||
See `../docs/README.md` for details about the generated CLI reference docs. | |||
|
|||
dummy cli change |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remember to remove this :)
docs/docs/dummy.md
Outdated
title: Dummy | ||
--- | ||
|
||
# Dummy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And this
.github/workflows/docs-check.yml
Outdated
- name: Check if CLI docs need to be generated | ||
if: ${{ steps.filter.outputs.cli == 'true' }} | ||
run: | | ||
echo "Changes detected in cli, generating docs" | ||
make docs.generate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To avoid magic where the published docs do not match the contents of the docs
directory on main
, can we fail CI with an informative error if make docs.generate
leads to changed files (you should be able to use Git to check if it leads to uncommitted changes)?
It's an extra manual step for the developer to run and commit make docs.generate
, but it'll be good to have eyes on that during review anyway.
- name: Check if new files were created | ||
if: ${{ steps.filter.outputs.cli == 'true' }} | ||
run: | | ||
git diff --exit-code || (echo "New files were created, please run 'make docs.generate' locally and commit the changes" && exit 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this missing the actual make docs.generate
? Like:
- name: Check if new files were created | |
if: ${{ steps.filter.outputs.cli == 'true' }} | |
run: | | |
git diff --exit-code || (echo "New files were created, please run 'make docs.generate' locally and commit the changes" && exit 1) | |
- name: Check if new files were created | |
if: ${{ steps.filter.outputs.cli == 'true' }} | |
run: | | |
make docs.generate | |
git diff --exit-code || (echo "New files were created, please run 'make docs.generate' locally and commit the changes" && exit 1) |
Update GitHub docs workflow to check if there were cli help menu changes.