Skip to content

Commit

Permalink
feat: adding schema.json file to alpha (8.7) version (#2537)
Browse files Browse the repository at this point in the history
  • Loading branch information
hamza-m-masood authored Dec 20, 2024
1 parent 0b88c6f commit d7b4530
Show file tree
Hide file tree
Showing 6 changed files with 5,466 additions and 66 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: "Chart - Update Golden Files and README"
name: "Chart - Chores"

on:
pull_request:
branches:
- main
paths:
- ".github/workflows/chart-update-readme-and-golden-files.yaml"
- ".github/workflows/chart-chores.yaml"
- "charts/**"

permissions:
Expand Down Expand Up @@ -34,11 +34,10 @@ jobs:
echo "should-run=${SHOULD_RUN}" | tee -a ${GITHUB_OUTPUT}
outputs:
should-run: ${{ steps.conditions.outputs.should-run }}

chores:
needs: [init]
if: needs.init.outputs.should-run == 'true'
name: Update README And Golden Files
name: Chart chores
runs-on: ubuntu-latest
steps:
#
Expand Down Expand Up @@ -91,10 +90,14 @@ jobs:
run: |
chartPath="${CHANGED_CHARTS}" \
make helm.readme-update
- name: Update Schema
run: |
chartPath="${CHANGED_CHARTS}" \
make helm.schema-update
- name: Git pull
run: git pull --rebase --autostash .
- uses: EndBug/add-and-commit@a94899bca583c204427a224a7af87c02f9b325d5 # v9.1.4
with:
author_name: "distro-ci[bot]"
author_email: "122795778+distro-ci[bot]@users.noreply.github.com"
message: "chore: Update golden files"
message: "chore: chart chores"
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,19 @@ helm.readme-update:
--readme "$${chart_dir}/README.md";\
done

# helm.schema-update: generate schema from values file
.PHONY: helm.schema-update
helm.schema-update:
for chart_dir in $(chartPath); do \
if echo "$${chart_dir}" | grep -qE "camunda-platform-8\.(2|3|4|5|6)$$"; then \
continue; \
fi; \
echo "\n[$@] Chart dir: $${chart_dir}"; \
readme-generator \
--values "$${chart_dir}/values.yaml" \
--schema "$${chart_dir}/values.schema.json";\
done

#########################################################
######### Release
#########################################################
Expand Down
Loading

0 comments on commit d7b4530

Please sign in to comment.