Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion scripts/generate-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ go run -tags "containers_image_ostree_stub exclude_graphdriver_devicemapper excl
# Clone replicated-docs
DOCS_DIR="/tmp/replicated-docs"
rm -rf "${DOCS_DIR}"
git clone --depth 1 "https://${GITHUB_TOKEN}@github.com/replicatedhq/replicated-docs.git" "${DOCS_DIR}"
# Token goes in the password slot (with a dummy username) so git authenticates
# the push non-interactively. Without "x-access-token:", the token lands in the
# username slot with no password and git prompts for one, which fails on CI.
git clone --depth 1 "https://x-access-token:${GITHUB_TOKEN}@github.com/replicatedhq/replicated-docs.git" "${DOCS_DIR}"

cd "${DOCS_DIR}"
git config user.email "release@replicated.com"
Expand Down