From a52e48865185f4e1e40dd423e8a272a68c433534 Mon Sep 17 00:00:00 2001 From: Paul Gottschling Date: Mon, 16 Dec 2024 14:35:32 -0500 Subject: [PATCH] Fix the Prepare docs site configuration step - Remove unneeded `cd`s - Use the correct version name in the `config.json` prepared for the Docusaurus site --- .github/workflows/doc-tests.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/doc-tests.yaml b/.github/workflows/doc-tests.yaml index 8e2feb7889dc2..54df4b0743ef2 100644 --- a/.github/workflows/doc-tests.yaml +++ b/.github/workflows/doc-tests.yaml @@ -96,12 +96,10 @@ jobs: run: | echo "" > .gitmodules rm -rf content/* - cd content || exit 1 # Rather than using a submodule, copy the teleport source into the # content directory. cp -r "$GITHUB_WORKSPACE/teleport" "$GITHUB_WORKSPACE/docs/content/current" - cd "$GITHUB_WORKSPACE/docs" || exit 1 - jq -nr --arg version "$BRANCH" '{"versions": [{"name": $version,"branch": $version, "deprecated": false, "isDefault": true }]}' > config.json + jq -nr --arg version "current" '{"versions": [{"name": $version,"branch": $version,"deprecated": false,"isDefault": true}]}' > config.json NEW_PACKAGE_JSON=$(jq '.scripts."git-update" = "echo Skipping submodule update"' package.json); NEW_PACKAGE_JSON=$(jq '.scripts."prepare-sanity-data" = "echo Using pre-populated Sanity data"' <<< "$NEW_PACKAGE_JSON"); echo "$NEW_PACKAGE_JSON" > package.json;