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

Feature: Support appending an existing release #70

Closed
callum-tait-pbx opened this issue Nov 27, 2020 · 2 comments · Fixed by #134
Closed

Feature: Support appending an existing release #70

callum-tait-pbx opened this issue Nov 27, 2020 · 2 comments · Fixed by #134

Comments

@callum-tait-pbx
Copy link

Problem
If a release already exists with the same tag then chart-releaser fails with the following error:

Error: error creating GitHub release: POST https://api.github.com/repos/my_org/actions-runner-controller-mirror/releases: 422 Validation Failed [{Resource:Release Field:tag_name Code:already_exists Message:}]

Proposed Soltuion
Check for a matching release beforehand and append to that release if the action is configured to do so.

      - name: Run chart-releaser
        uses: helm/chart-releaser-action@v1.1.0
        env:
          CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
          APPEND_TO_RELEASE: true

To retain compatibility make the default value false.

@terrytangyuan
Copy link

terrytangyuan commented Aug 31, 2021

Just encountered the same issue. We have multiple charts but only some of them have version changes, which results in the already_exists error. Does anyone know any workarounds?

@qrkourier
Copy link

Releases shouldn't change, and so I'd like cr.sh to simply use the new cr --skip-existing option to ignore version collisions. If the releaser truly needs to clobber a release they could always delete them and then redeploy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants