From 5484489406f3c5fc022402b9ba712b9e3ba06f8b Mon Sep 17 00:00:00 2001 From: Luis Pater Date: Thu, 12 Mar 2026 11:19:24 +0800 Subject: [PATCH] chore(ci): update model catalog fetch method in workflows --- .github/workflows/docker-image.yml | 8 ++++++-- .github/workflows/pr-test-build.yml | 4 +++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 4a9501c0..9c8c2858 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -16,7 +16,9 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Refresh models catalog - run: curl -fsSL https://raw.githubusercontent.com/router-for-me/models/refs/heads/main/models.json -o internal/registry/models/models.json + run: | + git fetch --depth 1 https://github.com/router-for-me/models.git main + git show FETCH_HEAD:models.json > internal/registry/models/models.json - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Login to DockerHub @@ -49,7 +51,9 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Refresh models catalog - run: curl -fsSL https://raw.githubusercontent.com/router-for-me/models/refs/heads/main/models.json -o internal/registry/models/models.json + run: | + git fetch --depth 1 https://github.com/router-for-me/models.git main + git show FETCH_HEAD:models.json > internal/registry/models/models.json - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Login to DockerHub diff --git a/.github/workflows/pr-test-build.yml b/.github/workflows/pr-test-build.yml index b24b1fcb..75f4c520 100644 --- a/.github/workflows/pr-test-build.yml +++ b/.github/workflows/pr-test-build.yml @@ -13,7 +13,9 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Refresh models catalog - run: curl -fsSL https://raw.githubusercontent.com/router-for-me/models/refs/heads/main/models.json -o internal/registry/models/models.json + run: | + git fetch --depth 1 https://github.com/router-for-me/models.git main + git show FETCH_HEAD:models.json > internal/registry/models/models.json - name: Set up Go uses: actions/setup-go@v5 with: