chore(ci): improve check docs job
Description
Ensures we only run the documentation update if the files changed instead of all the time. This step can become slow if we are changing branches, and because we don't have a binary for generating the docs, and are instead always generating a new one.
The boring solution here is to only run this step if required.
Additionally, in CI we want to cache the dependencies for the check docs job, to avoid pulling them all the time.
- chore(lefthook): improve docs check
Related Issues
How has this been tested?
Screenshots (if appropriate):
Edited by Filip Aleksic