SebRollen / toml-action

14 stars 8 forks source link

toml-action breaks on "foo.bar = 123" syntax #5

Closed ajeetdsouza closed 1 year ago

ajeetdsouza commented 1 year ago

TOML supports the following syntax:

foo.bar = 123

which is equivalent to

foo = { bar = 123 }

However, toml-action throws an error when it encounters this:

Expected "=", [ \t] or [A-Za-z0-9_\-] but "." found.
SebRollen commented 1 year ago

This seems to be an issue in the underlying toml library that this action uses: https://github.com/BinaryMuse/toml-node/issues/51

Seems like other libraries have had success with switching to @iarna/toml - I'll try the same

SebRollen commented 1 year ago

This is now fixed in version 1.0.2 https://github.com/SebRollen/toml-action/releases/tag/v1.0.2

Thanks for opening the issue!