I am using Github pages to host a status website with Netlify CMS. Site editors using the CMS will often upload very large images.
I have an actions workflow that runs on push to master. It resizes the images and then uses git-auto-commit-action to commit the result into master.
The issue is that the large images are thus retained in the repo, and as there are many, this is undesirable. I would like to essentially replace the previous commit (containing the unsized images) with a commit containing the resized images, or simply amend the previous commit.
Does anyone know of a specific action that is useful for this?