Skip to content

Commit

Permalink
add README
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-bene committed May 29, 2024
1 parent 096a4ed commit f0e2789
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Sync With Hugging Face Space
This action creates a seperate README.md file with a yaml header prepended for Hugging Face 🤗 Space and syncs your updates with the space repo.

A repo using this action can be found [here](https://github.com/alex-bene/BianqueNet).

## Usage
```yaml
- uses: alex-bene/[email protected]
with:
# The github repo you are syncing from. Required.
github_repo_id: ''
# The branch of your github repo you want to sync from. Defaults to 'main'. Optional.
github_branch: 'main'
# The yaml headers file to use, e.g., hf_space_metadata.yml (will be prepended to your README.md in the HF space). Required.
yaml_header_path: ''
# The Hugging Face repo id you want to sync to. (ex. 'username/reponame'). Required.
huggingface_repo_id: ''
# Hugging Face token with write access and corresponding username. Required.
# Here, we provide a token that we called `HF_TOKEN` when we added the secret to our GitHub repo.
hf_username: ''
hf_token: ${{ secrets.HF_TOKEN }}
```
## License
The scripts and documentation in this project are released under the [MIT License](LICENSE).
2 changes: 2 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ inputs:
type: string
hf_username:
required: true
type: string
hf_token:
required: true
type: string

runs:
using: "composite"
Expand Down

0 comments on commit f0e2789

Please sign in to comment.