Closed Kerwood closed 3 weeks ago
I see that the error is caused by my self..
I am trying to make a centralized helm-chart repo by adding my other application repos as submodules.
I forked the chart-releaser-action
repo and did a little modification to the lookup_changed_charts()
function to find all chart folders in the submodules. See changes here https://github.com/Kerwood/chart-releaser-action/commit/89ebe16f1017a9163016e6db184b5cbf3c04e108
I can replicate the error by
cd
into it.git submodule update --init --remote --merge
to download the submodule repos containing the charts.mkdir test
cd
into the submodule folder.git worktree add --detach ../../test origin/gh-pages
Above produces fatal: invalid reference: origin/gh-pages
.
I understand that the issue is not a bug on the cr
cli. But any suggestions would be appreciated.
The chart-releaser-action
seems a bit complex and supports a lot use cases I dont need. I think I will create my own simple chart releaser action that supports my need of submodule/subfolder charts.
When running the chart releaser action I get the following error.
I'm not sure what the
fatal: invalid reference: origin/gh-pages
means but the branch do exist.Using
v1.6.1
ofcr
.