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

additional versions get updated instead of just one #268

Open
dalbertom opened this issue Aug 9, 2024 · 1 comment
Open

additional versions get updated instead of just one #268

dalbertom opened this issue Aug 9, 2024 · 1 comment

Comments

@dalbertom
Copy link

Hi there,

I have a Helm chart where Chart.yaml looks something like this:

dependencies:
  - name: dependency-name
    version: "0.2.0"

version: 0.2.0

As you can see, the version is 0.2.0, but the dependency happens to be on the same version, "0.2.0".

When I run the action with:

version-file: "Chart.yaml"
version-path: "version"

It ends up updating both entries rather than just the outer version. Is there a way to set version-path or use another option to leave the dependency version unchanged?

Thanks!

@TriPSs
Copy link
Owner

TriPSs commented Oct 24, 2024

Interesting, looking at the yml implementation we do replace because:

        // We use replace instead of yaml.stringify so we can preserve white spaces and comments
        // Replace if version was used with single quotes

Open for suggestions on how to tackle this.

PS: Sorry for the late reply.

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