I am using modern pages. Unfortunately, they check-in file as soon as they are uploaded. I've designed it so that they remain checked-out to user as soon as they are uploaded.
Now the reason is to make sure user fills in required metadata. However, users are being sneaky and doing 'discard check-out' which in turn checks-in the file without filling in metadata.
How can I prevent this? (without disabling discard check-out?)
Can I run a library workflow which runs when files are modified (is check-in a trigger for this?)
Can I run a site workflow to see if any file is checked in and if metadata is not filled in, then check them out for 'modified by' user?