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
543 stars 199 forks source link

How to force trigger an initial release? #120

Open tisonkun opened 1 year ago

tisonkun commented 1 year ago

Said I'm doing manually releases before and now switch to chart-releaser-action. It seems all runs will be filtered out because:

Discovering changed charts since 'pulsar-2.9.4'...
Nothing to do. No chart changes detected.

See https://github.com/tisonkun/pulsar-helm-chart/actions/runs/3109884015/jobs/5040526282.

What's the best way to switch the release workflow?

tisonkun commented 1 year ago

It seems that I should copy the original index.yaml to gh-pages branch.

mathew-fleisch commented 1 year ago

@tisonkun any thoughts on how to generate the original index.yaml? I seem to have the same problem, but lost the original version. I can't seem to start over, deleted the gh-pages branch, and everything I have done has made no difference. I continue to get the Nothing to do. No chart changes detected. error

Update: I came across this thread: https://github.com/helm/chart-releaser-action/issues/92 and learned a few things:

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