File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,12 @@ jobs:
114114 - name : Update values in HELM chart
115115 if : startsWith(github.head_ref, 'renovate/') || startsWith(github.head_ref, 'dependabot/')
116116 run : |
117- yq -i '.annotations."artifacthub.io/changes" += "- kind: changed\n description: ${{ github.event.pull_request.title }}\n"' helm/defectdojo/Chart.yaml
117+ title=${{ github.event.pull_request.title }}
118+ chars='{}:[],&*#?|-<>=!%@'
119+ for c in $(echo "$chars" | grep -o .); do
120+ title="${title//"$c"/_}"
121+ done
122+ yq -i '.annotations."artifacthub.io/changes" += "- kind: changed\n description: $title\n"' helm/defectdojo/Chart.yaml
118123 git add helm/defectdojo/Chart.yaml
119124 git commit -m "ci: update Chart annotations from PR #${{ github.event.pull_request.number }}" || echo "No changes to commit"
120125
You can’t perform that action at this time.
0 commit comments