Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore: update sdk-api-spec bot (#9195)

Hassieb Pakzad69b3b8177191
diff --git a/.github/workflows/sdk-api-spec.yml b/.github/workflows/sdk-api-spec.yml
index d3ba37cbba..479af7b3bb 100644
--- a/.github/workflows/sdk-api-spec.yml
+++ b/.github/workflows/sdk-api-spec.yml
@@ -1,9 +1,9 @@
name: SDK API Spec Generation
on:
- # push:
- # branches:
- # - main
+ push:
+ branches:
+ - main
workflow_dispatch:
concurrency:
@@ -47,9 +47,6 @@ jobs:
git clone https://github.com/langfuse/langfuse-python.git ../langfuse-python
cd ../langfuse-python
- # Configure git
- git config user.name "api-spec-bot"
- git config user.email "[email protected]"
echo "$GH_ACCESS_TOKEN" | gh auth login --with-token
gh auth setup-git
@@ -62,9 +59,7 @@ jobs:
# Install poetry and format
pip install poetry
poetry install --all-extras
- cd langfuse/api
- poetry run ruff format . || echo "Ruff format completed with warnings"
- cd ../..
+ poetry run ruff format langfuse/api
# Check for changes and show diff for debugging
if git diff --quiet; then
@@ -72,11 +67,8 @@ jobs:
exit 0
fi
- echo "Changes detected in Python SDK:"
- git diff
-
# Close existing api-spec-bot PRs
- gh pr list --author api-spec-bot --state open --json number --jq '.[].number' | xargs -I {} gh pr close {}
+ gh pr list --author langfuse-bot --state open --json number --jq '.[].number' | xargs -I {} gh pr close {}
# Create new branch and push changes
BRANCH_NAME="api-spec-bot-${{ github.sha }}"
@@ -97,8 +89,6 @@ jobs:
cd ../langfuse-js
# Configure git
- git config user.name "api-spec-bot"
- git config user.email "[email protected]"
echo "$GH_ACCESS_TOKEN" | gh auth login --with-token
gh auth setup-git
@@ -111,7 +101,7 @@ jobs:
# Install dependencies and format
npm install -g pnpm
pnpm install
- pnpm format || echo "Format completed with warnings"
+ pnpm format
# Check for changes and show diff for debugging
if git diff --quiet; then
@@ -119,11 +109,8 @@ jobs:
exit 0
fi
- echo "Changes detected in TypeScript SDK:"
- git diff
-
# Close existing api-spec-bot PRs
- gh pr list --author api-spec-bot --state open --json number --jq '.[].number' | xargs -I {} gh pr close {}
+ gh pr list --author langfuse-bot --state open --json number --jq '.[].number' | xargs -I {} gh pr close {}
# Create new branch and push changes
BRANCH_NAME="api-spec-bot-${{ github.sha }}"