Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .github/workflows/sdks_generate_openapi_spec_and_fern_code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,17 @@ jobs:
echo "trigger_info=" >> $GITHUB_OUTPUT
fi

- name: Check for changes
id: check_changes
run: |
if git diff --quiet; then
echo "has_changes=false" >> $GITHUB_OUTPUT
else
echo "has_changes=true" >> $GITHUB_OUTPUT
fi

- name: Commit files
if: steps.check_changes.outputs.has_changes == 'true'
run: |
set -ex
git config --local user.email "github-actions@comet.com"
Expand All @@ -120,9 +130,10 @@ jobs:
git add sdks/code_generation/fern/openapi/openapi.yaml
git add apps/opik-documentation/documentation/fern/openapi/opik.yaml
git add apps/opik-documentation/documentation/fern/docs/agent_optimization/opik_optimizer/reference.mdx
git commit --allow-empty -m "[NA] [SDK] [DOCS] Update automatically OpenAPI spec and Fern code"
git commit -m "[NA] [SDK] [DOCS] Update automatically OpenAPI spec and Fern code"

- name: Create Pull Request
if: steps.check_changes.outputs.has_changes == 'true'
id: create-pr
uses: peter-evans/create-pull-request@v6
with:
Expand Down
13 changes: 12 additions & 1 deletion .github/workflows/span_cost_upload_daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,27 @@ jobs:
curl -o apps/opik-backend/src/main/resources/model_prices_and_context_window.json https://raw.githubusercontent.com/BerriAI/litellm/refs/heads/main/model_prices_and_context_window.json
cp apps/opik-backend/src/main/resources/model_prices_and_context_window.json apps/opik-frontend/src/data/model_prices_and_context_window.json

- name: Check for changes
id: check_changes
run: |
if git diff --quiet; then
echo "has_changes=false" >> $GITHUB_OUTPUT
else
echo "has_changes=true" >> $GITHUB_OUTPUT
fi

- name: Commit files
if: steps.check_changes.outputs.has_changes == 'true'
run: |
set -ex
git config --local user.email "github-actions@comet.com"
git config --local user.name "Github Actions (${{ github.actor }})"
git add apps/opik-backend/src/main/resources/model_prices_and_context_window.json
git add apps/opik-frontend/src/data/model_prices_and_context_window.json
git commit --allow-empty -m "[NA] [BE] Update model prices file"
git commit -m "[NA] [BE] Update model prices file"

- name: Create Pull Request
if: steps.check_changes.outputs.has_changes == 'true'
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.COMET_ACTION_CREATE_PR }}
Expand Down
Loading