mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-16 23:41:43 +00:00
only create PR when pricing file is updated
This commit is contained in:
parent
dea119a5f4
commit
768bafe8b7
1 changed files with 8 additions and 8 deletions
|
|
@ -44,12 +44,12 @@ jobs:
|
|||
else
|
||||
git commit -m "Update model_prices_and_context_window.json file: $(date +'%Y-%m-%d')"
|
||||
git push "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" "${BRANCH_NAME}"
|
||||
fi
|
||||
if gh pr view "${BRANCH_NAME}" >/dev/null 2>&1; then
|
||||
echo "PR already exists for ${BRANCH_NAME}."
|
||||
else
|
||||
gh pr create --title "Update model_prices_and_context_window.json file" \
|
||||
--body "Automated update for model_prices_and_context_window.json" \
|
||||
--head "${BRANCH_NAME}" \
|
||||
--base "${BASE_BRANCH}"
|
||||
if gh pr view "${BRANCH_NAME}" >/dev/null 2>&1; then
|
||||
echo "PR already exists for ${BRANCH_NAME}."
|
||||
else
|
||||
gh pr create --title "Update model_prices_and_context_window.json file" \
|
||||
--body "Automated update for model_prices_and_context_window.json" \
|
||||
--head "${BRANCH_NAME}" \
|
||||
--base "${BASE_BRANCH}"
|
||||
fi
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue