I found the solution in those two articles:
Plesk automatically update submodule on git repository change
How to auto deploy Hugo website on Plesk Onyx
I'm using this line to update my submodules and log the output to a logfile in the users home directory:
printf "\n---\n$(date)\n---\n" >>...