{"id":13625643,"url":"https://github.com/JacobLinCool/huggingface-sync","last_synced_at":"2025-04-16T10:32:39.659Z","repository":{"id":171389077,"uuid":"647851592","full_name":"JacobLinCool/huggingface-sync","owner":"JacobLinCool","description":"Sync your GitHub repository to Hugging Face Spaces.","archived":false,"fork":false,"pushed_at":"2025-04-11T23:58:25.000Z","size":577,"stargazers_count":8,"open_issues_count":12,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-12T00:31:31.193Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JacobLinCool.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-31T16:52:12.000Z","updated_at":"2025-03-30T15:44:45.000Z","dependencies_parsed_at":"2023-11-25T03:20:35.230Z","dependency_job_id":"08c9f420-180c-411a-9517-24eefd156fce","html_url":"https://github.com/JacobLinCool/huggingface-sync","commit_stats":null,"previous_names":["jacoblincool/huggingface-sync"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobLinCool%2Fhuggingface-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobLinCool%2Fhuggingface-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobLinCool%2Fhuggingface-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobLinCool%2Fhuggingface-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JacobLinCool","download_url":"https://codeload.github.com/JacobLinCool/huggingface-sync/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249228274,"owners_count":21233852,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T21:01:58.744Z","updated_at":"2025-04-16T10:32:39.391Z","avatar_url":"https://github.com/JacobLinCool.png","language":"TypeScript","funding_links":[],"categories":["others"],"sub_categories":[],"readme":"# Hugging Face Sync\n\nSync your GitHub repository to Hugging Face Spaces.\n\n## Why\n\nHugging Face Spaces requires you to add a configuration section to the head of `README.md`, which is making it looks ugly on GitHub. This GitHub Action will automatically add the configuration section to `README.md` and sync your repository to Hugging Face Spaces.\n\n![ugly readme](./images//readme.png)\n\nAlso, it syncs your repository in a clean repository. So you don't need to fight with some restrictions of Hugging Face Spaces, such as the file type limit and some files that are not allowed to be uploaded in old commits.\n\n## Usage\n\nAdd the following GitHub Action to your repository:\n\n```yaml\nname: Sync to Hugging Face Spaces\n\non:\n    push:\n        branches:\n            - main\n\njobs:\n    sync:\n        name: Sync\n        runs-on: ubuntu-latest\n\n        steps:\n            - name: Checkout Repository\n              uses: actions/checkout@v3\n\n            # Remove files that you don't want to sync to Hugging Face Spaces\n            # or blocked by Hugging Face Spaces.\n            - name: Remove bad files\n              run: rm -rf my-bad-files\n\n            - name: Sync to Hugging Face Spaces\n              uses: JacobLinCool/huggingface-sync@v1\n              with:\n                  github: ${{ secrets.GITHUB_TOKEN }}\n                  user: jacoblincool # Hugging Face username or organization name\n                  space: my-space # Hugging Face space name\n                  token: ${{ secrets.HF_TOKEN }} # Hugging Face token\n```\n\n\u003e You can find your Hugging Face token [here](https://huggingface.co/settings/token).\n\n## Options\n\nSee [action.yml](action.yml) for the full list of options.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJacobLinCool%2Fhuggingface-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJacobLinCool%2Fhuggingface-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJacobLinCool%2Fhuggingface-sync/lists"}