From b2bdd1c39f3b9d84c8513589867cd4e97abe2f06 Mon Sep 17 00:00:00 2001 From: AntiD2ta Date: Mon, 5 Feb 2024 13:23:22 +0100 Subject: [PATCH] Add CI check for documentation update --- .github/workflows/check-dock.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/check-dock.yaml diff --git a/.github/workflows/check-dock.yaml b/.github/workflows/check-dock.yaml new file mode 100644 index 000000000..62b021adb --- /dev/null +++ b/.github/workflows/check-dock.yaml @@ -0,0 +1,28 @@ +name: Helm Docs Check + +on: + pull_request + +jobs: + helm-docs-validation: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Docker + uses: docker/setup-buildx-action@v2 + + - name: Run helm-docs to update docs + run: | + docker run --rm --volume "$(pwd):/helm-docs" -u $(id -u) jnorwood/helm-docs:latest + + - name: Check for unstaged changes + run: | + if [ -n "$(git status --porcelain)" ]; then + echo "Unstaged changes detected. Please update the Helm chart documentation in your PR." + exit 1 + else + echo "No unstaged changes detected. Documentation is up-to-date." + fi