helm / chart-releaser-action

A GitHub Action to turn a GitHub project into a self-hosted Helm chart repo, using helm/chart-releaser CLI tool
https://github.com/helm/chart-releaser
Apache License 2.0
539 stars 199 forks source link

Write chart_version only if latest_tag is defined #202

Open fhofherr opened 2 weeks ago

fhofherr commented 2 weeks ago

The chart_version output was written regardless of whether the latest_tag variable was defined. The latest_tag variable is only defined if skip_packaging is not set. This leads to issue #171.

Setting skip_packaging implies that an external process takes care of packaging the chart and setting the chart version. There is thus no need to write the chart_version output as it should already be known.

Closes #171

IGx89 commented 3 days ago

@davidkarlsen would you be able to take a look at this PR too? It fixes a regression in v1.6 that's been preventing a lot of us from upgrading from v1.5.