Skip to content

Commit

Permalink
Check if CLI docs have been committed during CI (getporter#3132)
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]>
Co-authored-by: schristoff <[email protected]>
  • Loading branch information
kichristensen and schristoff authored May 28, 2024
1 parent 2339eb3 commit e5e562f
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/[email protected]
with:
Expand Down

0 comments on commit e5e562f

Please sign in to comment.