From 518537b63794fc2f6faac42a2a8baca6bc0afa66 Mon Sep 17 00:00:00 2001 From: Muyang Li Date: Mon, 21 Jul 2025 05:44:50 +0000 Subject: [PATCH 1/3] chore: avoid README when sync hf and ms --- .github/workflows/sync-hf-to-ms.yaml | 1 + scripts/sync_hf_to_ms.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sync-hf-to-ms.yaml b/.github/workflows/sync-hf-to-ms.yaml index 9ae4e7d3..b52df71e 100644 --- a/.github/workflows/sync-hf-to-ms.yaml +++ b/.github/workflows/sync-hf-to-ms.yaml @@ -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}") From 53094b9529203372cb180a058ff4f8f29706b1d0 Mon Sep 17 00:00:00 2001 From: Muyang Li Date: Mon, 21 Jul 2025 05:49:21 +0000 Subject: [PATCH 2/3] avoid manully push --- .github/workflows/sync-hf-to-ms.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync-hf-to-ms.yaml b/.github/workflows/sync-hf-to-ms.yaml index b52df71e..c1e2af59 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 From 3b070e641ff8b77ea9f871fb3d4ee434c9fa9968 Mon Sep 17 00:00:00 2001 From: Muyang Li Date: Mon, 21 Jul 2025 05:57:36 +0000 Subject: [PATCH 3/3] style: make linter happy --- .github/workflows/sync-hf-to-ms.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync-hf-to-ms.yaml b/.github/workflows/sync-hf-to-ms.yaml index c1e2af59..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