Make sure the action returns zero (0) on success.
Make the name of the action understandable and descriptive. You can view it in the Jobs panel as a task that either succeeded or failed.