Skip to content

Commit

Permalink
fix(helm/release-chart): revert umbrella charts version update
Browse files Browse the repository at this point in the history
Signed-off-by: Emilien Escalle <emilien.escalle@escemi.com>
  • Loading branch information
neilime committed Jul 31, 2024
1 parent 56c4417 commit f2bc5df
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
11 changes: 4 additions & 7 deletions actions/helm/release-chart/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,10 @@ runs:
// Update name for root chart
yqUpdates[filePath].push(`.name = "${{ github.event.repository.name }}"`);
// Update dependencies version where repository starts with file://
yqUpdates[filePath].push(`(.dependencies[] | select(.repository == "file://*")).version = "${{ inputs.tag }}"`);
// Update version fields
yqUpdates[filePath].push(`.version = "${{ inputs.tag }}"`);
yqUpdates[filePath].push(`.appVersion = "${{ inputs.tag }}"`);
}
// Update version fields
yqUpdates[filePath].push(`.version = "${{ inputs.tag }}"`);
yqUpdates[filePath].push(`.appVersion = "${{ inputs.tag }}"`);
}
// values.yml files
Expand Down Expand Up @@ -142,7 +139,7 @@ runs:
// Build yq commands
const yqCommands = Object.entries(yqUpdates).map(([filePath, updates]) => {
return `yq -i '${updates.join(' | ')}' ${filePath}`;
})
});
core.setOutput('yq-command', yqCommands.join('\n'));
Expand Down
9 changes: 9 additions & 0 deletions tests/charts/umbrella-application/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
dependencies:
- name: app
repository: file://./charts/app
version: 0.0.0
- name: mysql
repository: https://charts.bitnami.com/bitnami
version: 9.12.1
digest: sha256:0faef00d594681a7e9b2814ddd6be2c5403bea16f9640af8d495074018b11bcb
generated: "2024-07-31T09:49:17.09302034+02:00"

0 comments on commit f2bc5df

Please sign in to comment.