updated workflow to store prevtask,action,message,assignee in env so it can be evaluated