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 <kimworking@gmail.com>
  • Loading branch information
kichristensen committed May 26, 2024
1 parent 8e5e8b7 commit 18c2a0e
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 pushed
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 documentation changes have been pushed"
fi
shell: bash
- name: Publish Native Binaries
uses: actions/upload-artifact@v3.1.1
with:
Expand Down

0 comments on commit 18c2a0e

Please sign in to comment.