Expand variables only if the publisher is actually going to run