Skip to content

github actions taking --slug="something.json" with double quotes and fails #1374

@marekaf

Description

@marekaf

this fails:

Run readmeio/rdme@62bc5a43208c46fc0d90c78ebeddf0365a41b2cc
  with:
    rdme: openapi upload ./api-v2-schema.yaml --key=*** --slug="something.json" --confirm-overwrite

...
- Validating the API definition located at ./api-v2-schema.yaml...
Error: Please provide a valid file extension that matches the extension on the file you provided. Must be `.json`, `.yaml`, or `.yml`.

this works:

Run readmeio/rdme@62bc5a43208c46fc0d90c78ebeddf0365a41b2cc
  with:
    rdme: openapi upload ./api-v2-schema.yaml --key=*** --slug=something.json --confirm-overwrite

this is a very confusing error and it took a long time to resolve since there is no --verbose setting or anything that would actually help

can we somehow improve error logging / verbosity / docs to prevent this from happening to others?

thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions