Skip to content

Commit

Permalink
Update Hugging Face sync workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MH0386 committed Mar 11, 2024
1 parent 6b3e4c5 commit cfcb32b
Showing 1 changed file with 23 additions and 17 deletions.
40 changes: 23 additions & 17 deletions .github/workflows/huggingface-sync.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
name: Sync With Hugging Face Hub

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
push:
branches: ["master"]
pull_request:
branches: ["master"]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Sync With Hugging Face Hub
uses: nateraw/[email protected]
with:
github_repo_id: "MH0386/napoleon_dataset"
huggingface_repo_id: "MH0386/napoleon_bonaparte"
hf_token: ${{ secrets.HF_TOKEN }}
repo_type: "dataset"
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up Cache
uses: actions/[email protected]
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/.gitignore') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Sync With Hugging Face Hub
uses: nateraw/[email protected]
with:
github_repo_id: "MH0386/napoleon_dataset"
huggingface_repo_id: "MH0386/napoleon_bonaparte"
hf_token: ${{ secrets.HF_TOKEN }}
repo_type: "dataset"

0 comments on commit cfcb32b

Please sign in to comment.