Can I get the repository checkout(pull) result in a file after the ‘git pull/clone’ was finished?
Thing is I want to parse the content to see which sub-directory had changes so I can do a fine-grained deployment ONLY from the sub-directories in my repository that had changes…
The repository that I use has 3 different sub-directories. These sub-directories represent 3 different applications that are to be deployed (on AWS):
Since on every deploy on a branch, I do a full redeploy of all 3 applications, this process takes time and it’s not really mandatory if I only have changes for example in the ‘/worker’ directory. I’d like to to a conditional deploy from only the changed sub-dirs.
If I could access the git pull result, I could parse this using a bash script and only deploy from the sub-directories that have changes in the last commit.