Skip to content

Conversation

@richardhj
Copy link

This is an alternative approach to #85 and also fixes #77 & #72.

I don't think this is a BC break - it was never documented as being in JSON format and also the options were never passed to the command correctly?

@richardhj
Copy link
Author

I checked in the vendor files, should fix the workflow

let optionsArg = core.getInput('options')
if (optionsArg !== '') {
for (let [key, value] in Object.entries(JSON.parse(optionsArg))) {
for (let [key, value] in Object.entries(yaml.load(optionsArg))) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will it break BC? As somebody can use JSON already.

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

Successfully merging this pull request may close these issues.

Invalid JSON in options error when omitting the options input entirely

2 participants