DSPy: The framework for programming—not prompting—language models
Python
ci: keep docs bootstrap branch reviewable (#10405)
Isaac Miller4368715bfb9d
diff --git a/.github/workflows/bootstrap-versioned-docs.yml b/.github/workflows/bootstrap-versioned-docs.ymlindex fd856f2c9..63a14ed1d 100644--- a/.github/workflows/bootstrap-versioned-docs.yml+++ b/.github/workflows/bootstrap-versioned-docs.yml@@ -53,10 +53,12 @@ jobs:branch_status=$?set -eif [[ "$branch_status" == 0 ]]; then- git -C docs-deployment fetch origin versioned-docs:versioned-docs+ git -C docs-deployment fetch origin versioned-docs:refs/remotes/origin/versioned-docselif [[ "$branch_status" != 2 ]]; thenexit "$branch_status"fi+ # Anchor the complete candidate to production so GitHub can review it as a PR.+ git -C docs-deployment branch --force versioned-docs master- name: Reconstruct all historical snapshotsrun: |python docs/scripts/bootstrap_versioned_docs.py \@@ -77,4 +79,4 @@ jobs:gh auth setup-git# This staging push does not change production or activate Mike.# A reviewed dspy-docs PR promotes the candidate to master atomically.- git -C docs-deployment push origin versioned-docs+ git -C docs-deployment push --force-with-lease origin versioned-docs