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