How to set the files modifier conditionally

I would like to change which files are included in our test run conditionally, based on an environment variable. In particular the $CIRCLE_BRANCH variable.

Is it possible to do this?