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

Parse options as YAML string #86

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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

try {
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