Skip to content

Commit bb0371a

Browse files
M09Icclaude
andcommitted
fix(ci): hide models refresh from goreleaser dirty check
Use git update-index --assume-unchanged so the freshly downloaded models.json does not make the working tree dirty for goreleaser. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent dcf9d0b commit bb0371a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/release.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ jobs:
1919
- name: Refresh models catalog
2020
run: |
2121
curl -fsSL https://raw.githubusercontent.com/router-for-me/models/refs/heads/main/models.json -o internal/registry/models/models.json
22-
git add -A
23-
git diff --staged --quiet || git -c user.name="CI" -c user.email="ci@noreply" commit -m "chore: refresh models catalog"
22+
git update-index --assume-unchanged internal/registry/models/models.json
2423
- run: git fetch --force --tags
2524
- uses: actions/setup-go@v4
2625
with:

0 commit comments

Comments
 (0)