name: Update Model Pricing on: schedule: # Every Monday at 06:00 UTC - cron: '0 6 * * 1' workflow_dispatch: jobs: update-pricing: runs-on: ubuntu-latest permissions: contents: write steps: - uses: actions/checkout@v6 - uses: actions/setup-python@v6 with: python-version: '3.12' - name: Fetch and update pricing run: python scripts/update_pricing.py - name: Commit if changed run: | git diff --quiet assets/model_pricing.json crates/proxy/assets/model_pricing.json && { echo "Pricing already up to date." exit 0 } git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" git add assets/model_pricing.json crates/proxy/assets/model_pricing.json git commit -m "bot: update model pricing from LiteLLM [skip ci]" git push