fjogeleit / yaml-update-action

Update YAML property with dynamic values

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Empty Space throws Lexical error in v0.7.0

dungi opened this issue · comments

Hey,

I used v0.7.0 to update a value in YML. Example:

configs:
 My Value: 4

If I write propertyPath like this: 'configs.${{ github.event.inputs.key }}'
where key is 'My Value'

works good on v0.6.0 - but not anymore in v0.7.0

hey, thanks for reporting. in v0.7 I switched to jsonpath instead of the custom implementation. I will have a look on it and how I can fix it. So you don't miss anything if you use v0.6 until I fixed this issue.

Can you try the following syntax alternative: 'configs["${{ github.event.inputs.key }}"]' ?

Working with 0.7 'configs["${{ github.event.inputs.key }}"]' works for me now.

Great, Thanks for your feedback. So I close the issue, let me no if you have further problems.