diff --git a/.github/workflows/sync-hf-to-ms.yaml b/.github/workflows/sync-hf-to-ms.yaml index 9ae4e7d3..b6a8190e 100644 --- a/.github/workflows/sync-hf-to-ms.yaml +++ b/.github/workflows/sync-hf-to-ms.yaml @@ -2,7 +2,7 @@ name: Synchronize HuggingFace Repos to ModelScope on: schedule: - cron: '0 3 * * *' # Run every day at 03:00 UTC - workflow_dispatch: # Allow manual trigger from GitHub UI + # workflow_dispatch: # Allow manual trigger from GitHub UI jobs: sync: runs-on: ubuntu-latest @@ -20,6 +20,7 @@ jobs: - nunchaku-shuttle-jaguar - nunchaku-sana - nunchaku-flux.1-kontext-dev + - nunchaku-flux.1-schnell-pix2pix-turbo steps: - name: Checkout repository uses: actions/checkout@v4 diff --git a/scripts/sync_hf_to_ms.py b/scripts/sync_hf_to_ms.py index 7937c8ed..fbb45a58 100644 --- a/scripts/sync_hf_to_ms.py +++ b/scripts/sync_hf_to_ms.py @@ -45,7 +45,7 @@ def sync_model(repo_name: str, hf_repo: str, ms_repo: str): repo_id=ms_repo, folder_path=local_dir, commit_message=f"Sync from Hugging Face {hf_repo}", - ignore_patterns=["*nunchaku-tech*"], + ignore_patterns=["*nunchaku-tech*", "README.md"], ) print(f"✅ Sync complete: {hf_repo} -> {ms_repo}")