diff --git a/.github/workflows/website.yaml b/.github/workflows/website.yaml index f9e661ed7..1d5c1cd1b 100644 --- a/.github/workflows/website.yaml +++ b/.github/workflows/website.yaml @@ -111,9 +111,19 @@ jobs: uses: actions/checkout@v6 with: ref: ${{ github.event.pull_request.head.sha || inputs.branch || 'production' }} - submodules: ${{ env.SHOULD_USE_BLITZKIT_CLOSED == 'true' && 'recursive' || 'false' }} + submodules: false token: ${{ secrets.GH_TOKEN || github.token }} + # Future proofing for Reforged: we'll have both closed and open repos, so + # we need to handle them here instead of disabling submodules outright + - name: Checkout submodules + run: | + if [ "$SHOULD_USE_BLITZKIT_CLOSED" = "true" ]; then + git submodule update --init --recursive --depth=1 + else + git submodule update --init --recursive --depth=1 -- . ':!packages/closed' + fi + - name: Setup bun uses: oven-sh/setup-bun@v2