Skip to content

Commit a52e488

Browse files
committed
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
1 parent f773585 commit a52e488

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/doc-tests.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,10 @@ jobs:
9696
run: |
9797
echo "" > .gitmodules
9898
rm -rf content/*
99-
cd content || exit 1
10099
# Rather than using a submodule, copy the teleport source into the
101100
# content directory.
102101
cp -r "$GITHUB_WORKSPACE/teleport" "$GITHUB_WORKSPACE/docs/content/current"
103-
cd "$GITHUB_WORKSPACE/docs" || exit 1
104-
jq -nr --arg version "$BRANCH" '{"versions": [{"name": $version,"branch": $version, "deprecated": false, "isDefault": true }]}' > config.json
102+
jq -nr --arg version "current" '{"versions": [{"name": $version,"branch": $version,"deprecated": false,"isDefault": true}]}' > config.json
105103
NEW_PACKAGE_JSON=$(jq '.scripts."git-update" = "echo Skipping submodule update"' package.json);
106104
NEW_PACKAGE_JSON=$(jq '.scripts."prepare-sanity-data" = "echo Using pre-populated Sanity data"' <<< "$NEW_PACKAGE_JSON");
107105
echo "$NEW_PACKAGE_JSON" > package.json;

0 commit comments

Comments
 (0)