fix(ci): point OSS contributor workflows to litellm_oss_staging (#31270)

* fix(ci): point OSS contributor workflows to litellm_oss_staging

Workflow triggers and guard error messages incorrectly referenced litellm_oss_branch; update them to the branch we actually use for external contributions.

* fix(ci): include test-rust.yml in litellm_oss_staging rename

Missed test-rust.yml when updating OSS contributor target branch references.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Sameer Kankute 2026-06-25 09:37:59 +05:30 • committed by GitHub
parent 0f5603895c
commit c712c20d0f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 23 additions and 23 deletions

View file

@ -5,7 +5,7 @@ on:
branches:
- main
- litellm_internal_staging
- litellm_oss_branch
- litellm_oss_staging
- "litellm_**"
paths:
- "uv.lock"

View file

@ -31,12 +31,12 @@ jobs:
echo "PR head repo: $HEAD_REPO"
echo "PR head branch: $HEAD_REF"
if [ "$HEAD_REPO" != "$BASE_REPO" ]; then
echo "::error::PRs to main must originate from the canonical repository ($BASE_REPO), not a fork ($HEAD_REPO). External contributors should open PRs against the 'litellm_oss_branch' branch instead."
echo "::error::PRs to main must originate from the canonical repository ($BASE_REPO), not a fork ($HEAD_REPO). External contributors should open PRs against the 'litellm_oss_staging' branch instead."
exit 1
fi
if [ "$HEAD_REF" = "litellm_internal_staging" ] || [[ "$HEAD_REF" == litellm_hotfix_?* ]]; then
echo "Allowed source branch."
exit 0
fi
echo "::error::PRs to main must originate from 'litellm_internal_staging' or a 'litellm_hotfix_*' branch. Got: '$HEAD_REF'. If this is a contribution, retarget the PR against 'litellm_oss_branch' instead."
echo "::error::PRs to main must originate from 'litellm_internal_staging' or a 'litellm_hotfix_*' branch. Got: '$HEAD_REF'. If this is a contribution, retarget the PR against 'litellm_oss_staging' instead."
exit 1

View file

@ -5,7 +5,7 @@ on:
branches:
- main
- litellm_internal_staging
- litellm_oss_branch
- litellm_oss_staging
- "litellm_**"
schedule:
- cron: "23 6 * * *"

View file

@ -5,7 +5,7 @@ on:
branches:
- main
- litellm_internal_staging
- litellm_oss_branch
- litellm_oss_staging
- "litellm_**"
permissions:

View file

@ -5,7 +5,7 @@ on:
branches:
- main
- litellm_internal_staging
- litellm_oss_branch
- litellm_oss_staging
- "litellm_**"
permissions:

View file

@ -7,7 +7,7 @@ on:
branches:
- main
- litellm_internal_staging
- litellm_oss_branch
- litellm_oss_staging
- "litellm_**"
jobs:

View file

@ -5,7 +5,7 @@ on:
branches:
- main
- litellm_internal_staging
- litellm_oss_branch
- litellm_oss_staging
- "litellm_**"
permissions:

View file

@ -5,7 +5,7 @@ on:
branches:
- main
- litellm_internal_staging
- litellm_oss_branch
- litellm_oss_staging
- "litellm_**"
permissions:

View file

@ -9,7 +9,7 @@ on:
branches:
- main
- litellm_internal_staging
- litellm_oss_branch
- litellm_oss_staging
- "litellm_**"
paths:
- "litellm-rust/**"

View file

@ -5,7 +5,7 @@ on:
branches:
- main
- litellm_internal_staging
- litellm_oss_branch
- litellm_oss_staging
- "litellm_**"
permissions:

View file

@ -5,7 +5,7 @@ on:
branches:
- main
- litellm_internal_staging
- litellm_oss_branch
- litellm_oss_staging
- "litellm_**"
permissions:

View file

@ -5,7 +5,7 @@ on:
branches:
- main
- litellm_internal_staging
- litellm_oss_branch
- litellm_oss_staging
- "litellm_**"
permissions:

View file

@ -5,7 +5,7 @@ on:
branches:
- main
- litellm_internal_staging
- litellm_oss_branch
- litellm_oss_staging
- "litellm_**"
permissions:

View file

@ -5,7 +5,7 @@ on:
branches:
- main
- litellm_internal_staging
- litellm_oss_branch
- litellm_oss_staging
- "litellm_**"
permissions:

View file

@ -5,7 +5,7 @@ on:
branches:
- main
- litellm_internal_staging
- litellm_oss_branch
- litellm_oss_staging
- "litellm_**"
permissions:

View file

@ -5,7 +5,7 @@ on:
branches:
- main
- litellm_internal_staging
- litellm_oss_branch
- litellm_oss_staging
- "litellm_**"
permissions:

View file

@ -5,7 +5,7 @@ on:
branches:
- main
- litellm_internal_staging
- litellm_oss_branch
- litellm_oss_staging
- "litellm_**"
permissions:

View file

@ -5,7 +5,7 @@ on:
branches:
- main
- litellm_internal_staging
- litellm_oss_branch
- litellm_oss_staging
- "litellm_**"
workflow_dispatch:

View file

@ -5,7 +5,7 @@ on:
branches:
- main
- litellm_internal_staging
- litellm_oss_branch
- litellm_oss_staging
- "litellm_**"
permissions:

View file

@ -5,7 +5,7 @@ on:
branches:
- main
- litellm_internal_staging
- litellm_oss_branch
- litellm_oss_staging
- "litellm_**"
permissions:

View file

@ -5,7 +5,7 @@ on:
branches:
- main
- litellm_internal_staging
- litellm_oss_branch
- litellm_oss_staging
- "litellm_**"
permissions:

View file

@ -7,7 +7,7 @@ on:
branches:
- main
- litellm_internal_staging
- litellm_oss_branch
- litellm_oss_staging
- "litellm_**"
jobs: