nateraw / huggingface-sync-action

GitHub action that'll sync files from a GitHub Repo with the Hugging Face Hub 🤗
https://huggingface.co
Apache License 2.0
65 stars 8 forks source link

Make ignore_patterns configurable #5

Open mrshu opened 4 days ago

mrshu commented 4 days ago

The ignore_patterns are currently hard coded in the script:

https://github.com/nateraw/huggingface-sync-action/blob/54e4f55015a52747b4e2a5c9f2ee1056880cdd42/sync_with_spaces.py#L38

In some specific cases, however, the user might want to update the README.md as part of the GH action as well.

Would you be open to making the ignore_patterns user-configurable so that this would be possible?

Thanks a bunch!

nateraw commented 4 days ago

Feel free to PR if you'd like and I'll review, else I'll have to get to this when I find time which might be a little bit.

nateraw commented 4 days ago

Perhaps we go ahead and do #6 at the same time. lmk if you want to take a stab at it, else I'll take a look. If the CLI from HF doesn't work well with string ignore/allow patterns, we'll keep the script here.