Skip to content

Commit 1c62f3b

Browse files
testy test
1 parent ca1b87f commit 1c62f3b

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/sync-ai-models.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,10 @@ jobs:
3939
continue-on-error: true
4040
run: |
4141
set +e
42-
npx tsx packages/openops/src/lib/ai/sync-models.ts --update > sync-output.txt 2>&1
42+
npx tsx packages/openops/src/lib/ai/sync-models.ts --update
4343
EXIT_CODE=$?
4444
set -e
4545
echo "exit_code=$EXIT_CODE" >> $GITHUB_OUTPUT
46-
cat sync-output.txt
4746
exit 0
4847
4948
- name: Read warnings
@@ -68,6 +67,10 @@ jobs:
6867
git config user.email "github-actions[bot]@users.noreply.github.com"
6968
git checkout -b sync-ai-models-${{ github.run_number }}
7069
git add packages/openops/src/lib/ai/providers/
70+
if git diff --staged --quiet; then
71+
echo "No changes to commit"
72+
exit 0
73+
fi
7174
git commit -m "Update AI provider models from models.dev"
7275
git push origin sync-ai-models-${{ github.run_number }}
7376

0 commit comments

Comments
 (0)