Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on releasing charts when unrelated change is pushed to main #31

Open
dianabarsan opened this issue Nov 4, 2024 · 0 comments
Open
Labels
Type: Bug Fix something that isn't working as intended.

Comments

@dianabarsan
Copy link
Member

Apparently, the helm chart releaser job tries to release all charts on every push, but not all charts have updates and this results in an error:

Adding cr directory to PATH...
Packaging chart 'charts/cht-chart-4x'...
Successfully packaged chart in /home/runner/work/helm-charts/helm-charts/charts/cht-chart-4x and saved it to: .cr-release-packages/cht-chart-4x-1.2.0.tgz
Packaging chart 'charts/cht-user-management'...
Successfully packaged chart in /home/runner/work/helm-charts/helm-charts/charts/cht-user-management and saved it to: .cr-release-packages/cht-user-management-0.2.2.tgz
Releasing charts...
Error: error creating GitHub release cht-user-management-0.2.2: POST https://api.github.com/repos/medic/helm-charts/releases: 
422 Validation Failed [{Resource:Release Field:tag_name Code:already_exists Message:}]
Usage:
  cr upload [flags]

Example run:
https://github.com/medic/helm-charts/actions/runs/11659906035/job/32461227769

@dianabarsan dianabarsan added the Type: Bug Fix something that isn't working as intended. label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Fix something that isn't working as intended.
Projects
None yet
Development

No branches or pull requests

1 participant