From 72b945074f75a8615230c10c2cb7c69433be6032 Mon Sep 17 00:00:00 2001 From: Marc Littlemore Date: Tue, 8 Jul 2025 16:15:32 +0100 Subject: [PATCH] chore: Create correct GitHub token for document sync (#17112) --- .github/workflows/sync-public-api-docs.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sync-public-api-docs.yml b/.github/workflows/sync-public-api-docs.yml index 0a1b56532d..2320b34872 100644 --- a/.github/workflows/sync-public-api-docs.yml +++ b/.github/workflows/sync-public-api-docs.yml @@ -27,8 +27,18 @@ jobs: - name: Checkout Main n8n Repository uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - name: Setup Environment and Build Project - uses: ./.github/actions/setup-and-build + - name: Setup PNPM + uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 + + - name: Setup Node.js + uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 + with: + node-version: '22.x' + cache: 'pnpm' + + - name: Install Dependencies + run: pnpm install --frozen-lockfile + shell: bash - name: Build Public API Schema run: pnpm run build:data @@ -52,6 +62,8 @@ jobs: with: app-id: ${{ secrets.N8N_ASSISTANT_APP_ID }} private-key: ${{ secrets.N8N_ASSISTANT_PRIVATE_KEY }} + owner: ${{ github.repository_owner }} + repositories: n8n-docs - name: Checkout Docs Repository if: steps.verify_file.outputs.file_exists == 'true'