Skip to content

Support optional syncing of README.md to allow controlling sdk_version for Spaces #11

@xiaoyao9184

Description

@xiaoyao9184

Hi 👋,

Thanks for this great GitHub Action! I’d like to request a new optional feature:

Feature Request: Optional README.md Syncing
In recent updates, Gradio has introduced support for MCP (Model Context Protocol). In order to use MCP in Hugging Face Spaces, I upgraded the gradio version in my code, but forgot to manually update the sdk_version in the Space’s README.md. This caused unexpected behavior when deploying the updated space.

https://github.com/nateraw/huggingface-sync-action/blob/e130545cd60ff1f7652aa5beec968bf54dff214d/sync_with_spaces.py#L38C38-L38C47

Currently, README.md is excluded from syncing. However, allowing optional syncing of README.md (e.g. via a sync_readme: true option) would allow fully version-controlling Hugging Face Space configurations within the Git repo and avoid issues like mine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions