Added basic state check to workflow example

Wonder why need of state check is not even mentioned in readme
Let's try to keep whitespace changes out of feature PRs, or at least in separate commits within the PR, so we can clearly see feature changes vs. whitespace changes. Thanks.