Explorar el Código

Try to fix script -- fetch before checkout

Christopher Mullins hace 6 años
padre
commit
d2758db97b
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      .prepare_docs

+ 2 - 1
.prepare_docs

@@ -25,7 +25,8 @@ branch_docs_dir="${BRANCHES_DIR}/${git_ref_version}"
 redoc-cli bundle ${API_SPEC_FILE} -o ${redoc_bundle_file}
 
 # Check out current stuff from gh-pages (we'll append to it)
-git checkout gh-pages -- docs
+git fetch
+git checkout origin/gh-pages -- docs
 
 # Create the docs bundle for our ref.  This will be the redoc bundle + a
 # snapshot of the OpenAPI spec