I’m using git-lfs and i’m wondering if there is a way to prevent the trigger of a build when the last commits only contains lfs files since there is no use to rebuild the site and I just need the files to be uploaded to the Large Media service.
All my lfs files are located in a specific “images” directory that i’m tracking, so I’ve tried the following conf in my netlify.toml:
[build] ignore = "git diff --quiet HEAD^ HEAD -- . ':!images'"
but the build of the site is still triggered. I’ve checked the exit code of the git command and it seems fine.
Am i missing something? Is this syntax not working? or there is just no way to upload the files without a build?
Thanks for your help