Added check for publishWorkflow