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

How to force trigger an initial release? #120

Open
tisonkun opened this issue Sep 23, 2022 · 2 comments
Open

How to force trigger an initial release? #120

tisonkun opened this issue Sep 23, 2022 · 2 comments

Comments

@tisonkun
Copy link

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
Copy link
Author

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

@mathew-fleisch
Copy link

mathew-fleisch commented Jan 6, 2023

@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: #92 and learned a few things:

  • I had been using an on-tag, and switched to on-push instead (not sure if that was my problem, but might have helped)
  • I was "cutting a git release" before the chart-releaser ran, and it thought there were no new changes, so moving that stage after the chart-releaser unblocked me.
  • in the github action, you can set the CR_SKIP_EXISTING environment variable to overwrite an existing tag. Note: if there are already newer versions, you might be better off deleting the gh-branch, recreating it, and forcing index.yaml to be regenerated the next time the action is triggered:
name: Run chart-releaser
uses: helm/chart-releaser-action@v1.5.0
env:
  CR_TOKEN: "${{ secrets.CR_TOKEN }}"
  CR_SKIP_EXISTING: true

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

No branches or pull requests

2 participants