I have a script running in GitHub Actions that runs a retrieve from another source and loads those changes into a Git branch what I then want to do is iterate through the list of changed files and add them to a commit and add a specific commit message such as "Auto Commit - {xxxx.xml} file was changed" with xxxx.xml being the file name that was picked up in the git diff. At the moment my script just commits --all but I'd like to change this to loop through each change and add my own commit message per change. Is this possible?
echo "*************************************************************"
echo "GIT diff:"
echo ""
git diff
echo ""
echo "*************************************************************"
git add --all
git commit -m "Auto-commit - updated Salesforce metadata"
git push
P.S please bare in mind I'm a complete noob