fix(ci): only run certain workflows on main litellm repo

This commit is contained in:
wagnerjt 2025-03-31 18:01:35 -07:00
parent 46b3dbde8f
commit df82d8a950
2 changed files with 17 additions and 15 deletions

View file

@ -7,6 +7,7 @@ on:
jobs: jobs:
auto_update_price_and_context_window: auto_update_price_and_context_window:
if: github.repository == 'BerriAI/litellm' && github.event_name == 'schedule'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3

View file

@ -7,12 +7,13 @@ permissions:
on: on:
push: push:
paths: paths:
- 'schema.prisma' # Check root schema.prisma - "schema.prisma" # Check root schema.prisma
branches: branches:
- main - main
jobs: jobs:
publish-migrations: publish-migrations:
if: github.repository == 'BerriAI/litellm' && github.event_name == 'push'
runs-on: ubuntu-latest runs-on: ubuntu-latest
services: services:
postgres: postgres:
@ -50,7 +51,7 @@ jobs:
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v4 uses: actions/setup-python@v4
with: with:
python-version: '3.x' python-version: "3.x"
- name: Install Dependencies - name: Install Dependencies
run: | run: |