diff --git a/.github/workflows/auto_update_price_and_context_window.yml b/.github/workflows/auto_update_price_and_context_window.yml index 332023e0c9b..9577d3d2092 100644 --- a/.github/workflows/auto_update_price_and_context_window.yml +++ b/.github/workflows/auto_update_price_and_context_window.yml @@ -26,11 +26,11 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BASE_BRANCH: ${{ github.event.repository.default_branch }} run: | git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" BRANCH_NAME="auto-update-price-and-context-window-$(date +'%Y-%m-%d')" - BASE_BRANCH="${{ github.event.repository.default_branch }}" git fetch origin "${BASE_BRANCH}" "${BRANCH_NAME}" || true if git show-ref --verify --quiet "refs/remotes/origin/${BRANCH_NAME}"; then git checkout -B "${BRANCH_NAME}" "origin/${BRANCH_NAME}"