mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-11 03:38:38 +00:00
build(reset_stable.yml): rename branch to 'litellm_stable_release_branch'
use this branch to trigger load test / other workflows for stable releases
This commit is contained in:
parent
19e67b8c0e
commit
741500e089
1 changed files with 10 additions and 10 deletions
20
.github/workflows/reset_stable.yml
vendored
20
.github/workflows/reset_stable.yml
vendored
|
|
@ -13,7 +13,7 @@ jobs:
|
|||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Reset litellm_stable_test_1 branch to the release commit
|
||||
- name: Reset litellm_stable_release_branch branch to the release commit
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
|
|
@ -24,17 +24,17 @@ jobs:
|
|||
# Fetch all branches and tags
|
||||
git fetch --all
|
||||
|
||||
# Check if the litellm_stable_test_1 branch exists
|
||||
if git show-ref --verify --quiet refs/remotes/origin/litellm_stable_test_1; then
|
||||
echo "litellm_stable_test_1 branch exists."
|
||||
git checkout litellm_stable_test_1
|
||||
# Check if the litellm_stable_release_branch branch exists
|
||||
if git show-ref --verify --quiet refs/remotes/origin/litellm_stable_release_branch; then
|
||||
echo "litellm_stable_release_branch branch exists."
|
||||
git checkout litellm_stable_release_branch
|
||||
else
|
||||
echo "litellm_stable_test_1 branch does not exist. Creating it."
|
||||
git checkout -b litellm_stable_test_1
|
||||
echo "litellm_stable_release_branch branch does not exist. Creating it."
|
||||
git checkout -b litellm_stable_release_branch
|
||||
fi
|
||||
|
||||
# Reset litellm_stable_test_1 branch to the release commit
|
||||
# Reset litellm_stable_release_branch branch to the release commit
|
||||
git reset --hard $GITHUB_SHA
|
||||
|
||||
# Push the updated litellm_stable_test_1 branch
|
||||
git push origin litellm_stable_test_1 --force
|
||||
# Push the updated litellm_stable_release_branch branch
|
||||
git push origin litellm_stable_release_branch --force
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue