When you encounter in your work some boring, repetitive (possibly not-programming) task how do you deal with it? Do you try to automate it immediately? Do you postpone automation till you encounter the task twice? Do you try to delegate it? Do you try to find something interesting in it? What do you do to make the work more joyful? Learn deeper to make it more interesting? Learn deeper immediately or when you need it regularly?
It depends what the job is.
Some boring repetitive tasks (like going to weekly progress meetings) can't be automated. You just have to put up with them.
Some (like not having an automated build system) you might put up with forever if you only do the build once a year.
And some - you try to automate because it lets you do other more productive things, and also removes the possibility of human error.
Typically when I am tasked with something repetitive or boring I will almost always just do it atleast once. If I can see that the task may be asked of me or someone else again (even if I'm told its a one off) I try and take notes outlining the steps that were done. That way should I chose to add some automation I know exactly what I can automate.
But mainly it all depends on the how long the task takes to complete versus the time to automate. If it's a 10-15 minute process done once a month probably won't automate. May be a good diversion for moment. 10-15 minute process daily or even weekly, probably will automate. Man hours then start to add up.
Like others have said: if it's common enough to be worth automating, I automate it. If not, I just slog through it.
And if it starts to feel like the whole job is just one big pile of boring, repetitive tasks, then I burn out and move on. :)