[build][core] graph rule: condition is moved in action