From ab5169fb472a5676f0feae274554540967039da6 Mon Sep 17 00:00:00 2001 From: Paul Gottschling Date: Wed, 23 Oct 2024 09:45:53 -0400 Subject: [PATCH] Use checkout instead of submodule --- .github/workflows/doc-tests.yaml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/doc-tests.yaml b/.github/workflows/doc-tests.yaml index 5ba001575f3e..1cd6219aa395 100644 --- a/.github/workflows/doc-tests.yaml +++ b/.github/workflows/doc-tests.yaml @@ -36,6 +36,12 @@ jobs: pull-requests: read steps: + - name: Checkout + uses: actions/checkout@v4 + with: + repository: 'gravitational/teleport' + path: 'teleport' + - name: Checkout uses: actions/checkout@v4 with: @@ -62,10 +68,12 @@ jobs: echo "" > .gitmodules rm -rf content/* cd content - # Add a submodule at docs/content/teleport - git submodule add --force -b $BRANCH -- https://github.com/gravitational/teleport + # Rather than using a submodule, copy the teleport source into the + # content directory. + cp $GITHUB_WORKSPACE/teleport $GITHUB_WORKSPACE/docs/content cd $GITHUB_WORKSPACE/docs - echo "{\"versions\": [{\"name\": \"teleport\", \"branch\": \"$BRANCH\", \"deprecated\": false}]}" > $GITHUB_WORKSPACE/docs/config.json + echo "{\"versions\": [{\"name\": \"teleport\", \"branch\": \"teleport\", \"deprecated\": false}]}" > $GITHUB_WORKSPACE/docs/config.json + cat <<< "$(jq '.scripts."git-update" = "echo Skipping submodule update"' package.json)" > package.json yarn install yarn build-node