Skip to content

[erpc] Chart for erpc tool #49

[erpc] Chart for erpc tool

[erpc] Chart for erpc tool #49

Workflow file for this run

name: Helm Docs Check
on: pull_request
jobs:
helm-docs-validation:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Docker
uses: docker/setup-buildx-action@v2
- name: Set up chart-testing
uses: helm/[email protected]
- name: Run helm-docs
run: |
TARGET_BRANCH=${{ github.event.pull_request.base.ref }}
TARGET_CHART_PATH=$(ct list-changed --target-branch "$TARGET_BRANCH" | head -n 1)
echo "Target chart path: $TARGET_CHART_PATH"
docker run --rm --volume "$(pwd)/${TARGET_CHART_PATH}:/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