The github action passes the filename in as a second argument, but then fails with:
error: Found argument './pr_body' which wasn't expected, or isn't valid in this context
USAGE:
markdown-extract <pattern> <path> --no-print-matched-heading
For more information try --help
validate test plan
...assuming the filename is "./pr_body" I get the same failure without the leading ./
, as well as with an absolute path.
After doing a little bit of research, the workspace in an action is mounted in the container under /github/workspace
. So, it'd be nice if either the docs mentioned to prefix files with /github/workspace, or if the action Dockerfile set the workdir to /github/workspace and the docs said to use relative paths.