When you do what you believe is the right thing to do you strengthen your faith in yourself. When you do what you believe is the wrong thing to do you weaken your faith in yourself. The former strengthens your sense of self-worth, and the latter weakens it.
Notice that personal integrity operates independently of great achievements. You can achieve a great accomplishment while maintaining your personal integrity or while throwing it away. The great achievement is the outcome of your performance. However, the great achievement is not a source of enhanced self-worth if it happened as a result of you doing something that you thought was the wrong thing to do. Over the long term, your reduced level of self-worth will likely keep you from achieving at a consistently high level. On the other hand, if you do what you consider to be the right thing to do and it keeps you from achieving a certain great outcome, you can still come back to the arena in the future and be successful.
I’m encouraging you to protect your sense of self-worth so that you can always come back again to strive for a meaningful objective. Be conscious of what you are doing and why you are doing it and be sure that what you are doing is what you believe is the right thing to do at that moment. Integrity, and the lack of it, is a very personal matter that will impact your self-worth one way or the other.