Closed maximemoreillon closed 1 year ago
Hi @maximemoreillon, default charts dir flag is set to "charts", but your charts are located in "food-manager". I have added check if the the directory exists, so it should be much clearer what the error message is (just update to v0.0.7).
You can either set charts-dir
flag, or rename the directory where you keep charts.
Thanks for raising the issue (I have improved the checks), feel free to close this issue if it fixed your problem.
Hello @pete911, thanks so much for your quick answer and for the update! The new error message is now much easier to understand.
I reorganized my repo so that my chart is in the charts
folder and this step is now working as expected so I will mark this issue as closed.
However, I am now getting a new error during the release step (still using the action from the readme):
2023-02-12T09:49:55.499687539Z info hcr/main.go:32 pages-branch: "gh-pages", charts-dir: "charts", pre-release: false, tag: "", remote: "origin", token: *****, dry-run: false, helm-config: sign: false, key: <empty>, keyring: <empty>, passphrase-file: <empty>
2023-02-12T09:49:55.49980423[7](https://github.com/maximemoreillon/food-manager-helm-chart/actions/runs/4155742356/jobs/7189052794#step:4:8)Z info git/client.go:120 /usr/bin/git ls-remote --heads origin
2023-02-12T09:49:55.[8](https://github.com/maximemoreillon/food-manager-helm-chart/actions/runs/4155742356/jobs/7189052794#step:4:9)63120208Z info hcr/releaser.go:172 found gh-pages github pages remote branch
2023-02-12T0[9](https://github.com/maximemoreillon/food-manager-helm-chart/actions/runs/4155742356/jobs/7189052794#step:4:10):49:55.863156208Z info hcr/releaser.go:46 github pages remote branch exists
2023-02-12T09:49:55.863245807Z info helm/client.go:84 start package charts/food-manager chart
2023-02-12T09:49:55.86457689Z info helm/client.go:89 chart charts/food-manager packaged as food-manager-0.1.4.tgz
2023-02-12T09:49:55.864823387Z info helm/client.go:94 chart food-manager loaded
2023-02-12T09:49:55.864832987Z info hcr/releaser.go:54 charts packaged
2023-02-12T09:49:55.864872187Z info git/client.go:120 /usr/bin/git remote update origin --prune
2023-02-12T09:49:56.216265806Z info git/client.go:120 /usr/bin/git worktree add /tmp/gh-pages30[10](https://github.com/maximemoreillon/food-manager-helm-chart/actions/runs/4155742356/jobs/7189052794#step:4:11)386328 origin/gh-pages
2023-02-[12](https://github.com/maximemoreillon/food-manager-helm-chart/actions/runs/4155742356/jobs/7189052794#step:4:13)T09:49:56.222497329Z info hcr/releaser.go:[15](https://github.com/maximemoreillon/food-manager-helm-chart/actions/runs/4155742356/jobs/7189052794#step:4:16)2 added github pages gh-pages worktree to /tmp/gh-pages3010386328
2023-02-12T09:49:56.222560928Z info git/client.go:120 /usr/bin/git remote get-url --push origin
2023-02-12T09:49:56.757042488Z info git/client.go:120 /usr/bin/git worktree remove /tmp/gh-pages3010386328 --force
2023-02-12T09:49:56.759040599Z info hcr/releaser.go:159 removed github pages gh-pages worktree /tmp/gh-pages3010386328
2023-02-12T09:49:56.759076899Z info helm/client.go:75 removed generated chart food-manager-0.1.4.tgz
2023-02-12T09:49:56.759086[19](https://github.com/maximemoreillon/food-manager-helm-chart/actions/runs/4155742356/jobs/7189052794#step:4:20)9Z fatal hcr/main.go:40 release: food-manager-0.1.4 create release 0.1.4: POST https://api.github.com/repos/maximemoreillon/food-manager-helm-chart/releases: 403 Resource not accessible by integration []
Error: Process completed with exit code 1.
Am I missing something else? Should I open a new issue about it?
Hi @maximemoreillon, this is coming from github client, did you create and set github token - -token "${{ secrets.GITHUB_TOKEN }}"
@pete911 thanks so much for your reply!
I am using the .yml configuration from the readme so the token (if it exists) should be set.
- name: Package and release chart
run: |
git config user.email "gh-action@users.noreply.github.com"
git config user.name "gh-action"
./hcr -token "${{ secrets.GITHUB_TOKEN }}"
I might have omitted to create it though. If so, I apologize.
However, I am puzzled as to why the original helm-releaser-action works without me having to do anything particular about it:
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.5.0
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
Hi @maximemoreillon, not sure why it is failing tbh, because the token is set (log returns ****, if it wasn't set it would log
Hello @pete911 thanks a lot for your reply and sorry for getting back to you late.
The error was recurring so I switched to original helm-releaser-action for my workflows, sorry.
Hello,
Thank you so much for creating this action! I tried it using the sample code provided in the README and unfortunately got the following error:
Am I doing something wrong?