mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-16 23:41:43 +00:00
fix(actions): only skip PR creation when an open PR exists for the dated branch
This commit is contained in:
parent
e5fea477b2
commit
85c61bcdff
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ 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}"
|
||||
if gh pr view "${BRANCH_NAME}" >/dev/null 2>&1; then
|
||||
if [ "$(gh pr list --head "${BRANCH_NAME}" --state open --json number --jq 'length')" -gt 0 ]; then
|
||||
echo "PR already exists for ${BRANCH_NAME}."
|
||||
else
|
||||
gh pr create --title "Update model_prices_and_context_window.json file" \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue