From e8f5c440a6c0003aa06c89abbe5fca8aecaf678e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 16 Apr 2026 14:47:58 +0000 Subject: [PATCH 1/2] Initial plan From aaad380397cec176b8ededd38619dfe2e1c8547c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 16 Apr 2026 14:48:51 +0000 Subject: [PATCH 2/2] fix: use GITHUB_TOKEN for PRs, COMMAND_BOT_PAT only for push Agent-Logs-Url: https://github.com/nextcloud/documentation/sessions/3f3dc0fc-5c76-418f-8c07-081bc95a2b5f Co-authored-by: skjnldsv <14975046+skjnldsv@users.noreply.github.com> --- .github/workflows/generate-top-index.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/generate-top-index.yml b/.github/workflows/generate-top-index.yml index 032efd84b41..8aca920a577 100644 --- a/.github/workflows/generate-top-index.yml +++ b/.github/workflows/generate-top-index.yml @@ -30,7 +30,7 @@ jobs: uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: fetch-depth: 0 - token: ${{ secrets.COMMAND_BOT_PAT }} + token: ${{ github.event_name == 'push' && secrets.COMMAND_BOT_PAT || github.token }} - name: Get stable branches id: branch