Added basic state check to workflow example

Wonder why need of state check is not even mentioned in readme
Clearly I wasn't paying enough attention to see that this is only affecting the README. :-)