Closed sundowndev closed 2 years ago
Running into the same issue here. @sundowndev where you able to fix the problem?
Running into the same issue here. @sundowndev where you able to fix the problem?
No. I ended up removing this step from my workflow.
Same issue
It's working fine with me and returns the changed charts under dir helm/ [ where all my charts are listed ] changed=$(ct list-changed --remote origin --target-branch=staging --chart-dirs helm/)
You must pass the following: --remote, for your where your source code --target-branch, [ optional and its default is main/master ] --chart-dirs, where you point to the helm chart dir
@sundowndev , @wissamataleh , @afritzler you probably have the same issues as we had. Github changed the naming of the default branch from master to main. This causes an issue because cts default target branch is master and not main
To get it working add the option --target-branch
and the value main
- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --target-branch main)
if [[ -n "$changed" ]]; then
echo "::set-output name=changed::true"
fi
the same thing applies to the ct lint
and ct install
command.
@mathewmeconry Look at my OP, I have this option in the ct.yaml
helm-extra-args: --timeout 600s
chart-dirs:
- charts
target-branch: main
@mathewmeconry Look at my OP, I have this option in the
ct.yaml
helm-extra-args: --timeout 600s chart-dirs: - charts target-branch: main
After testing it looks like ct.yaml is ignored/not used by chart tester in this action. You must specify the flags for the commands individually.
I try to set up a basic helm chart repo but I'm stuck with this issue :
I also tried running
ct list-changed
directly but it does not show anything.my workflow:
ct.yaml
file structure :