fjogeleit / yaml-update-action

Update YAML property with dynamic values

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Action is formatting YAML, stripping comments/whitespace and resolving variable references

Hbbb opened this issue · comments

I have a large pubspec.yaml file for a flutter application that contains comments and variables. I'm using this action to increment the version of the app.

I noticed in the commits that this action is stripping out all comments. It's also changing variables. For example
This

rlly-name: &rlly_name 'rlly'

Becomes

rlly-name: rlly

Is there some way to have this action only update the field I specified and apply no other formatting?

Here's an example of the commit the action made:
SCR-20230821-g26

Hey, as described in the readme, works this action based on a lib which converts yaml to json, updates the values and converts them back to yaml.

this removes comments, spaces and changes other formatting. There is no way to change this without using another core lib which would support this. So, right now this is not possible.