We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca1b87f commit 1c62f3bCopy full SHA for 1c62f3b
1 file changed
.github/workflows/sync-ai-models.yml
@@ -39,11 +39,10 @@ jobs:
39
continue-on-error: true
40
run: |
41
set +e
42
- npx tsx packages/openops/src/lib/ai/sync-models.ts --update > sync-output.txt 2>&1
+ npx tsx packages/openops/src/lib/ai/sync-models.ts --update
43
EXIT_CODE=$?
44
set -e
45
echo "exit_code=$EXIT_CODE" >> $GITHUB_OUTPUT
46
- cat sync-output.txt
47
exit 0
48
49
- name: Read warnings
@@ -68,6 +67,10 @@ jobs:
68
67
git config user.email "github-actions[bot]@users.noreply.github.com"
69
git checkout -b sync-ai-models-${{ github.run_number }}
70
git add packages/openops/src/lib/ai/providers/
+ if git diff --staged --quiet; then
71
+ echo "No changes to commit"
72
+ exit 0
73
+ fi
74
git commit -m "Update AI provider models from models.dev"
75
git push origin sync-ai-models-${{ github.run_number }}
76
0 commit comments