Open cubxxw opened 6 months ago
Hi
We have started to experience this error too. We've been using the action for close to 12 months with no issues, but it has started failing since this last week. I'm still trying to pinpoint the exact scenario but it appears to be when multiple charts are updated in the same PR.
The index.yaml file is updated with the new chart but the chart package fails to get pushed to the branch - resulting in 'broken' Helm chart releases.
Thanks in advance.
Packaging chart 'charts/app-A'...
Successfully packaged chart in /home/runner/work/helm-charts/helm-charts/charts/app-A and saved it to: .cr-release-packages/app-A-0.11.14.tgz
Packaging chart 'charts/app-B'...
Successfully packaged chart in /home/runner/work/helm-charts/helm-charts/charts/app-B and saved it to: .cr-release-packages/app-B-3.1.3.tgz
Releasing charts...
Preparing worktree (detached HEAD 2d59b212)
Updating files: 59% (1848/3103)
...
Updating files: 100% (3103/3103), done.
HEAD is now at 2d59b212 Update index.yaml
[detached HEAD 6cef577f] Publishing chart package for app-B-3.1.3
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 app-B-3.1.3.tgz
Pushing to branch "gh-charts"
To https://github.com/xxx/helm-charts
2d59b212..6cef577f HEAD -> gh-charts
Preparing worktree (detached HEAD 2d59b212)
Updating files: 58% (1810/3103)
...
Updating files: 100% (3103/3103), done.
HEAD is now at 2d59b212 Update index.yaml
[detached HEAD 67cfc5b2] Publishing chart package for app-A-0.11.14
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 app-A-0.11.14.tgz
Pushing to branch "gh-charts"
To https://github.com/xxx/helm-charts
! [rejected] HEAD -> gh-charts (non-fast-forward)
error: failed to push some refs to 'https://github.com/xxx/helm-charts'
hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. If you want to integrate the remote changes, use 'git pull'
hint: before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Error: exit status 1
Usage:
cr upload [flags]
Flags:
-c, --commit string Target commit for release
--generate-release-notes Whether to automatically generate the name and body for this release. See https://docs.github.com/en/rest/releases/releases
-b, --git-base-url string GitHub Base URL (only needed for private GitHub) (default "https://api.github.com/")
-r, --git-repo string GitHub repository
-u, --git-upload-url string GitHub Upload URL (only needed for private GitHub) (default "https://uploads.github.com/")
-h, --help help for upload
--make-release-latest Mark the created GitHub release as 'latest' (default true)
-o, --owner string GitHub username or organization
-p, --package-path string Path to directory with chart packages (default ".cr-release-packages")
--packages-with-index Host the package files in the GitHub Pages branch
--pages-branch string The GitHub pages branch (default "gh-pages")
--pr Create a pull request for the chart package against the GitHub Pages branch (must not be set if --push is set)
--push Push the chart package to the GitHub Pages branch (must not be set if --pr is set)
--release-name-template string Go template for computing release names, using chart metadata (default "{{ .Name }}-{{ .Version }}")
--release-notes-file string Markdown file with chart release notes. If it is set to empty string, or the file is not found, the chart description will be used instead. The file is read from the chart package
--remote string The Git remote used when creating a local worktree for the GitHub Pages branch (default "origin")
--skip-existing Skip upload if release exists
-t, --token string GitHub Auth Token
Global Flags:
--config string Config file (default is $HOME/.cr.yaml)
Error: Process completed with exit code 1.
I also have my doubts about that.
Currently having the same problem and it looks like it needs to be solved from the CLI side. There is an open PR https://github.com/helm/chart-releaser/pull/314 addressing this specific issue.
Hello, I have encountered an error in GitHub actions, and I am currently finding it quite challenging to resolve. I would greatly appreciate your guidance on how to proceed. Thank you for your assistance.
Error:
My actions file: