Fix glob pattern matching by splitting the path input into a base path and a pattern. Relevant section from the docs of doublestar.Glob():
// Like io/fs.Glob(), patterns containing /./, /../, or starting with /
// will return no results and no errors. You can use SplitPattern to divide a
// pattern into a base path (to initialize an FS object) and pattern.
Checklist
step.yml
andREADME.md
is updated with the changes (if needed)Version
Requires a MAJOR/MINOR/PATCH version update
Context
Pattern matching in the
paths
input is not working when the path is an absolute path (or one that gets expanded to an absolute path), such as:Changes
Fix glob pattern matching by splitting the path input into a base path and a pattern. Relevant section from the docs of
doublestar.Glob()
:Investigation details
Decisions