Open stackptr opened 11 months ago
I like the id
idea. I don't see why we couldn't set individual outputs, like steps.grep.outputs.fixme.count
either. The dorny/paths-filter
action seems able to output dyamic things like steps.changes.outputs.{my-filter-name}
, so this would be similar to that.
That's a good point about dorny/paths-filter
. For some reason I assumed there would be a lot of frustrating pitfalls in using outputs without fixed names, such that it would be more trouble than it's worth. I haven't found that to be the case with that particular action.
An output that specifies how many matches were found would make the action useful for scenarios outside of feedback in pull requests. For example, the number of occurrences of a pattern could be tracked as a kind of code quality metric:
While the above supposes the existence of an output like
total-matches
, a more flexible output could be accomplished by extending the inputpatterns.pattern
with anid
, like: