From 768bafe8b7004307d9816e2aff75f872fb89458a Mon Sep 17 00:00:00 2001 From: oskar <53711292+oskarkocol@users.noreply.github.com> Date: Mon, 13 Jul 2026 20:32:11 +0700 Subject: [PATCH] only create PR when pricing file is updated --- .../auto_update_price_and_context_window.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/auto_update_price_and_context_window.yml b/.github/workflows/auto_update_price_and_context_window.yml index 0242bfc8058..73e4730ad3c 100644 --- a/.github/workflows/auto_update_price_and_context_window.yml +++ b/.github/workflows/auto_update_price_and_context_window.yml @@ -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