Skip to content
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

Sync using 'upload_folder' + add private attribute #1

Merged
merged 1 commit into from
Jan 13, 2023

Conversation

Wauplin
Copy link
Contributor

@Wauplin Wauplin commented Nov 23, 2022

@nateraw I made a few changes/fixes if that's fine with you. Love the idea of this Github Action btw 🔥.

  1. private argument was described in README but not effective in the github action
  2. repo_id can be misleading if username is implicit => I still wonder how we could ease this in huggingface_hub
  3. Use upload_folder with ignore_patterns to filter README and .git files. Makes implementation cleaner + only 1 commit is pushed to HF instead of 1 per file.

Not done in the PR but I guess it could be interesting to add more options in the GH action like create_pr, revision, ignore_patterns. Let's see if it's requested by community :)

@nateraw
Copy link
Owner

nateraw commented Nov 24, 2022

Awesome thank you so much!! Will check out this PR asap

Copy link
Owner

@nateraw nateraw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! sorry for delay...just now going to use this for something so figured I'd update.

Really appreciate the PR!! 😄

@nateraw nateraw merged commit 21872b5 into nateraw:main Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants