-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using git-lfs optimized images are incorrectly commited #50
Comments
@mieszko4 I must admit I've never used git-lfs so at this stage I'm not aware of how to add support for it. Would files need to be committed to lfs separately? Are you familiar with the GitHub API? Would you be able to help implement LFS support? |
I am also investigating it a bit now :) When you use it locally I am happy to help. The following looks promising https://github.com/mikeal/publish-to-github-action |
In particular: https://github.com/mikeal/publish-to-github-action/blob/master/entrypoint.sh In any case, if there is a way to commit directly using git commands (instead of github api) I think it would automatically resolve the problem with git lfs (since |
@benschwarz got stuck with this as well. While it correctly compressed LFS files. It doesn't commit The updated image with a pointer but a binary instead. I think oktokit rest library doesn't seem to support LFS. So the best way to support LFS is invoke git commands in bash, or maybe call a shell script like @mieszko4 is suggesting. Thoughts? |
Could #54 help with this? Use the proposed |
hey @bazzadp yeah, that might work 👌 I do wish it's something built in with the action, like using |
@thisguychris, It seems like a |
Here's where you can find documentation about image-actions compress only mode. |
I have a repository with images tracked in git-lfs.
My
.gitattributes
:So my configuration for github's action checkout step is:
Calibreapp optimizes images well but instead of committing optimized images to git-lfs it commits them directly to git repository (by creating binary files instead of pointers)
I suspect the problem is here:
image-actions/src/github-commit.js
Lines 52 to 77 in f1ea93b
So I cannot use this action with my current setup :(
Do you plan to support git-lfs repositories?
The text was updated successfully, but these errors were encountered: