mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
fix(ci): only run certain workflows on main litellm repo
This commit is contained in:
parent
46b3dbde8f
commit
df82d8a950
2 changed files with 17 additions and 15 deletions
|
@ -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
|
||||||
|
|
5
.github/workflows/publish-migrations.yml
vendored
5
.github/workflows/publish-migrations.yml
vendored
|
@ -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: |
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue