Skip to content

Commit

Permalink
Check if CLI docs have been committed during CI
Browse files Browse the repository at this point in the history
AS CLI reference docs is generated during build, we should ensure that
they have been committed and pushed whenever a they are changed.

Signed-off-by: Kim Christensen <[email protected]>
  • Loading branch information
kichristensen committed May 25, 2024
1 parent 8e5e8b7 commit cdc2c09
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/porter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@ jobs:
- name: Native Build
run: go run mage.go build
shell: bash
- name: Check if all doc changes have been committed
run: |
if [ "$(git status --porcelain docs/)" ];
then
echo "There are changes to the documentation that have not been pushed! Please push the following files after build"
git status -s docs/
exit 1
else
echo "All docs commited"
fi
shell: bash
- name: Publish Native Binaries
uses: actions/[email protected]
with:
Expand Down

0 comments on commit cdc2c09

Please sign in to comment.