Skip to content

Commit 2171863

Browse files
authored
fix(helm/renovate/dependabot): Commit changes & fix condition format (#13695)
1 parent 856aa7a commit 2171863

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ jobs:
115115
if: startsWith(github.head_ref, 'renovate/') || startsWith(github.head_ref, 'dependabot/')
116116
run: |
117117
yq -i '.annotations."artifacthub.io/changes" += "- kind: changed\n description: ${{ github.event.pull_request.title }}\n"' helm/defectdojo/Chart.yaml
118+
git add helm/defectdojo/Chart.yaml
119+
git commit -m "ci: update Chart annotations from PR #${{ github.event.pull_request.number }}" || echo "No changes to commit"
118120
119121
- name: Run helm-docs (update)
120122
uses: losisin/helm-docs-github-action@a57fae5676e4c55a228ea654a1bcaec8dd3cf5b5 # v1.6.2
@@ -128,7 +130,7 @@ jobs:
128130
# The helm-docs documentation will be generated for you.
129131
- name: Run helm-docs (check)
130132
uses: losisin/helm-docs-github-action@a57fae5676e4c55a228ea654a1bcaec8dd3cf5b5 # v1.6.2
131-
if: ! startsWith(github.head_ref, 'renovate/') || startsWith(github.head_ref, 'dependabot/')
133+
if: ${{ !(startsWith(github.head_ref, 'renovate/') || startsWith(github.head_ref, 'dependabot/')) }}
132134
with:
133135
fail-on-diff: true
134136
chart-search-root: "helm/defectdojo"

0 commit comments

Comments
 (0)