techwritermat
Repos
3
Followers
1

Events

Linter doesn't recognize more than one changed file

I tried your workflow to lint changed files only (I literally used what was in changed.yml in your repo) and I've run into an issue where, if there is more than one file, the linter doesn't work.

It seems to have to do with the fact that the separator "/n" gets URL-encoded (see https://github.com/tj-actions/changed-files#known-limitation) and the result is not a newline-separated list of files but a single, long string of filenames that your action doesn't recognize, e.g.: docs/folder/item1.md%0Adocs/folder/item2.mdx%0Adocs/folder/item3.md.

The 'changed-files' action may save the result in JSON form. Perhaps if markdownlint-cli2-action accepted JSON instead of a newline-separated list, this would work.

Created at 2 months ago
Created at 2 months ago
pull request closed
Updated readme
Created at 2 months ago
issue comment
Updated readme

@PraveenNanda124 thank you for your contribution. I'm afraid I need to close this PR without merging, as your change does not add substantial value and only adds a single word, whose omission is acceptable in this context.

Created at 2 months ago