remove last 6 steps if it is not production workflow