Generate values parameters #11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Generate values parameters | |
| on: | |
| schedule: | |
| # Tous les jours à 02:00 UTC | |
| - cron: "0 2 * * *" | |
| workflow_dispatch: | |
| jobs: | |
| update_values_parameters: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| with: | |
| repository: crowdsecurity/helm-charts | |
| path: helm-charts | |
| - name: Set up Node.js (readme-generator requires Node 22.x) | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: "22" | |
| - name: Install readme-generator-for-helm | |
| run: npm i -g @bitnami/readme-generator-for-helm@2.7.2 | |
| - name: Generate README.md & values.schema.json | |
| run: | | |
| find . | |
| readme-generator \ | |
| --values "helm-charts/charts/crowdsec/values.yaml" \ | |
| --readme "crowdsec-docs/docs/configuration/values_parameters.md" \ | |
| --schema "/tmp/schema.json" | |
| - name: Commit bump | |
| uses: EndBug/add-and-commit@v9 | |
| with: | |
| message: "chore(charts): regenerate values parameters" |