Skip to content

Commit 3881936

Browse files
authored
fix(HELM): Add "artifacthub.io/changes" for renovate & dependabot (#13520)
1 parent 9c5bd56 commit 3881936

File tree

2 files changed

+15
-27
lines changed

2 files changed

+15
-27
lines changed

.github/workflows/helm-docs-updates.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/test-helm-chart.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,25 @@ jobs:
9999
steps:
100100
- name: Checkout
101101
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
102-
102+
103+
- name: Update values in HELM chart
104+
if: startsWith(github.head_ref, 'renovate/') || startsWith(github.head_ref, 'dependabot/')
105+
run: |
106+
yq -i '.annotations."artifacthub.io/changes" += "- kind: changed\n description: ${{ github.event.pull_request.title }}\n"' helm/defectdojo/Chart.yaml
107+
108+
- name: Run helm-docs (update)
109+
uses: losisin/helm-docs-github-action@a57fae5676e4c55a228ea654a1bcaec8dd3cf5b5 # v1.6.2
110+
if: startsWith(github.head_ref, 'renovate/') || startsWith(github.head_ref, 'dependabot/')
111+
with:
112+
chart-search-root: "helm/defectdojo"
113+
git-push: true
114+
103115
# Documentation provided in the README file needs to contain the latest information from `values.yaml` and all other related assets.
104116
# If this step fails, install https://github.com/norwoodj/helm-docs and run locally `helm-docs --chart-search-root helm/defectdojo` before committing your changes.
105117
# The helm-docs documentation will be generated for you.
106-
- name: Run helm-docs
118+
- name: Run helm-docs (check)
107119
uses: losisin/helm-docs-github-action@a57fae5676e4c55a228ea654a1bcaec8dd3cf5b5 # v1.6.2
120+
if: ! startsWith(github.head_ref, 'renovate/') || startsWith(github.head_ref, 'dependabot/')
108121
with:
109122
fail-on-diff: true
110123
chart-search-root: "helm/defectdojo"

0 commit comments

Comments
 (0)