Mark Manson talks about this in his book The Subtle Art of Not Giving a Fuck as the Do something principle

In the chapter The “Do Something” Principle, Mark writes

Mr. Packwood’s advice started beckoning me from the recesses of my mind. I heard it like a mantra: “Don’t just sit there. Do something. The answers will follow.”

[- - ] perhaps the most important thing I’ve ever learned in my life:

Action isn’t just the effect of motivation: it’s also the cause of it.

Most of us commit to action only if we feel a certain level of motivation.

[ - - ]

If you lack the motivation to make an important change in your life, do something - anything, really - and then harness the reaction to that action as a way to begin motivating yourself.