My friend once dropped the line “you get paid for 40 hours, and you pay yourself after.”
It’s a great line, especially for salary workers. We owe our employers our due effort when we’re on the clock, but we need to draw the line and prepare for the future beyond that.
Sometimes it’s working on your own side projects, learning new stuff, or picking up new credentials. And sometimes it will be gaining experience on the job, working for free.
Unless you’re happy with where you’re at (and sometimes it’s ok to coast) you’ll have to work more than 40 hours.
But after that 40, make sure you’re setting the agenda. Don’t let someone else determine that agenda according to their whims, you need to figure that out yourself.