chore(api): sync prompts.csv from API and update message translations

This commit is contained in:
Fatih Kadir Akın
2025-12-13 23:37:43 +03:00
parent f71a5a3560
commit b6c911a766
21 changed files with 404 additions and 263 deletions
+20
View File
@@ -34,6 +34,26 @@ jobs:
chmod +x scripts/generate-contributors.sh
./scripts/generate-contributors.sh
- name: Sync prompts.csv from API (removes unlisted prompts)
env:
PROMPTS_API_URL: "https://prompts.chat"
run: |
if [ -n "$PROMPTS_API_URL" ]; then
echo "Fetching prompts.csv from API..."
curl -s "${PROMPTS_API_URL}/prompts.csv" -o prompts.csv.new
if [ -s prompts.csv.new ]; then
mv prompts.csv.new prompts.csv
git add prompts.csv
git diff --cached --quiet || git commit -m "Update prompts.csv (sync from API)"
echo "prompts.csv updated from API"
else
echo "Warning: Empty response from API, keeping existing prompts.csv"
rm -f prompts.csv.new
fi
else
echo "PROMPTS_API_URL not set, skipping prompts.csv sync"
fi
- name: Push changes
run: |
git push origin main --force-with-lease