Prevent action group from running on file type and/or directory

see. e.g. this discussion from 2018:

As you can save filters and assign a name to them, you could create an environment in which you remember which filter would fit which actions.
So far I see problems with 2 sets of filters: the one in the filter box and the one in the actions. Which would have priority? Would only 1 be the valid filter and overrule the other one?

For the time being I see labelled filters and dedicated configurations of action groups as the way to do it.
Until the feature is implemented, of course.
But any effort that you spend right now to overhaul your actions and filters will be worthwhile as that technique will probably sustain and is there right now.