Skip to content

Commit f2bc5df

Browse files
committed
fix(helm/release-chart): revert umbrella charts version update
Signed-off-by: Emilien Escalle <emilien.escalle@escemi.com>
1 parent 56c4417 commit f2bc5df

2 files changed

Lines changed: 13 additions & 7 deletions

File tree

actions/helm/release-chart/action.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff 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
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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"

0 commit comments

Comments
 (0)