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

fix(action): fix input config_data #5

Merged
merged 1 commit into from
Mar 17, 2023

Conversation

beiertu-mms
Copy link
Collaborator

@beiertu-mms beiertu-mms commented Mar 17, 2023

The value for the option config_data can contain spaces, as it's a serialized YAML object (see also yamllint doc).
Therefore it needs to be enclosed with quotes to prevent the shell to interpret the value as arguments.

Otherwise the given configuration will be interpret as arguments and
yamllint will complain, which looks something like

yamllint . --format auto \
    --config-data {extends: default, rules: {line-length: {max: 120}}}
  
usage: yamllint [-h] [-] [-c CONFIG_FILE | -d CONFIG_DATA] [--list-files]
                [-f {parsable,standard,colored,github,auto}] [-s]
                [--no-warnings] [-v]
                [FILE_OR_DIR ...]
yamllint: error: unrecognized arguments: default, rules: {line-length: {max: 120}}}

@beiertu-mms beiertu-mms force-pushed the fix/action/adjust-config_data-input branch from 6004c9d to d82f737 Compare March 17, 2023 12:05
@beiertu-mms beiertu-mms added the bug Something isn't working label Mar 17, 2023
@beiertu-mms beiertu-mms marked this pull request as ready for review March 17, 2023 12:06
@beiertu-mms beiertu-mms merged commit f67f4d2 into master Mar 17, 2023
@beiertu-mms beiertu-mms deleted the fix/action/adjust-config_data-input branch March 17, 2023 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant