File tree Expand file tree Collapse file tree
actions/helm/release-chart
tests/charts/umbrella-application Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -84,13 +84,10 @@ runs:
8484 // Update name for root chart
8585 yqUpdates[filePath].push(`.name = "${{ github.event.repository.name }}"`);
8686
87- // Update dependencies version where repository starts with file://
88- yqUpdates[filePath].push(`(.dependencies[] | select(.repository == "file://*")).version = "${{ inputs.tag }}"`);
87+ // Update version fields
88+ yqUpdates[filePath].push(`.version = "${{ inputs.tag }}"`);
89+ yqUpdates[filePath].push(`.appVersion = "${{ inputs.tag }}"`);
8990 }
90-
91- // Update version fields
92- yqUpdates[filePath].push(`.version = "${{ inputs.tag }}"`);
93- yqUpdates[filePath].push(`.appVersion = "${{ inputs.tag }}"`);
9491 }
9592
9693 // values.yml files
@@ -142,7 +139,7 @@ runs:
142139 // Build yq commands
143140 const yqCommands = Object.entries(yqUpdates).map(([filePath, updates]) => {
144141 return `yq -i '${updates.join(' | ')}' ${filePath}`;
145- })
142+ });
146143
147144 core.setOutput('yq-command', yqCommands.join('\n'));
148145
Original file line number Diff line number Diff line change 1+ dependencies:
2+ - name: app
3+ repository: file://./charts/app
4+ version: 0.0.0
5+ - name: mysql
6+ repository: https://charts.bitnami.com/bitnami
7+ version: 9.12.1
8+ digest: sha256:0faef00d594681a7e9b2814ddd6be2c5403bea16f9640af8d495074018b11bcb
9+ generated: "2024-07-31T09:49:17.09302034+02:00"
You can’t perform that action at this time.
0 commit comments