docs: add hub-sync GitHub Action to repo and Spaces docs#2361
Merged
davanstrien merged 3 commits intomainfrom Apr 8, 2026
Merged
docs: add hub-sync GitHub Action to repo and Spaces docs#2361davanstrien merged 3 commits intomainfrom
davanstrien merged 3 commits intomainfrom
Conversation
Add a new general-purpose GitHub Actions page under Repositories covering huggingface/hub-sync for Models, Datasets, and Spaces. Update the Spaces-specific page to lead with hub-sync while keeping the manual git push approach as a fallback. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Keep it to a short note about the LFS requirement rather than maintaining a separate third-party action reference. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
Recommend fine-grained tokens scoped to the target repo. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Member
Author
pcuenca
approved these changes
Apr 8, 2026
Wauplin
approved these changes
Apr 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
huggingface/hub-syncfor Models, Datasets, and Spaceshub-syncas the primary approach, keeping manualgit pushas a fallbackhfCLI) rather than syncing git historyContext
The official
huggingface/hub-syncGitHub Marketplace Action was shipped, but the docs still only showed the old manualgit pushworkflow and were Spaces-specific. This PR updates the docs and adds a general page since the action supports all repo types.Smoke-tested with a real repo: davanstrien/test-hub-sync → Space
Test plan
/docs/hub/repositories-github-actions/docs/hub/spaces-github-actionsNote
Low Risk
Low risk documentation-only change; main risk is broken links or confusing workflow snippets if the action parameters/version drift.
Overview
Adds a new
Repositories -> GitHub Actionsdoc page describing how to sync GitHub repos to the Hub using the officialhuggingface/hub-syncaction (including setup, example workflows, and parameter reference).Updates
spaces-github-actions.mdto recommendhub-syncas the primary approach, explains that it mirrors files via thehfCLI (not git history), keeps manualgit pushas an alternative, and links to the new general page. Also updates the Hub docs sidebar (_toctree.yml) to include the new GitHub Actions page.Reviewed by Cursor Bugbot for commit c73a22e. Bugbot is set up for automated code reviews on this repo. Configure here.