From 18c2a0efb192eadbddb92ee922bc5daa7cec62b9 Mon Sep 17 00:00:00 2001 From: Kim Christensen Date: Sat, 25 May 2024 23:41:42 +0200 Subject: [PATCH] Check if CLI docs have been committed during CI 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 --- .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: