Skip to content

Commit 57defc8

Browse files
authored
chore: avoid README when sync hf and ms (#550)
* chore: avoid README when sync hf and ms * avoid manully push * style: make linter happy
1 parent a785d71 commit 57defc8

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/sync-hf-to-ms.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Synchronize HuggingFace Repos to ModelScope
22
on:
33
schedule:
44
- cron: '0 3 * * *' # Run every day at 03:00 UTC
5-
workflow_dispatch: # Allow manual trigger from GitHub UI
5+
# workflow_dispatch: # Allow manual trigger from GitHub UI
66
jobs:
77
sync:
88
runs-on: ubuntu-latest
@@ -20,6 +20,7 @@ jobs:
2020
- nunchaku-shuttle-jaguar
2121
- nunchaku-sana
2222
- nunchaku-flux.1-kontext-dev
23+
- nunchaku-flux.1-schnell-pix2pix-turbo
2324
steps:
2425
- name: Checkout repository
2526
uses: actions/checkout@v4

scripts/sync_hf_to_ms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def sync_model(repo_name: str, hf_repo: str, ms_repo: str):
4545
repo_id=ms_repo,
4646
folder_path=local_dir,
4747
commit_message=f"Sync from Hugging Face {hf_repo}",
48-
ignore_patterns=["*nunchaku-tech*"],
48+
ignore_patterns=["*nunchaku-tech*", "README.md"],
4949
)
5050
print(f"✅ Sync complete: {hf_repo} -> {ms_repo}")
5151

0 commit comments

Comments
 (0)