From e5e562f0e8f5de69a26643c81ad932a68b924d45 Mon Sep 17 00:00:00 2001 From: Kim Christensen <2461567+kichristensen@users.noreply.github.com> Date: Tue, 28 May 2024 19:05:50 +0200 Subject: [PATCH] Check if CLI docs have been committed during CI (#3132) 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 Co-authored-by: schristoff <28318173+schristoff@users.noreply.github.com> --- .github/workflows/porter.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/porter.yml b/.github/workflows/porter.yml index e7deb53f3..0173e8286 100644 --- a/.github/workflows/porter.yml +++ b/.github/workflows/porter.yml @@ -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: