Skip to content

Commit

Permalink
Add CI check for documentation update
Browse files Browse the repository at this point in the history
  • Loading branch information
AntiD2ta committed Feb 5, 2024
1 parent 56479f9 commit b2bdd1c
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/check-dock.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b2bdd1c

Please sign in to comment.