From 05001b9dce89c52ce25a2b92931bc3705e118562 Mon Sep 17 00:00:00 2001 From: Ludy87 Date: Sat, 21 Jun 2025 23:28:37 +0200 Subject: [PATCH] Update ai_pr_title_review.yml --- .github/workflows/ai_pr_title_review.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/ai_pr_title_review.yml b/.github/workflows/ai_pr_title_review.yml index 1087a24ee..69d4f24be 100644 --- a/.github/workflows/ai_pr_title_review.yml +++ b/.github/workflows/ai_pr_title_review.yml @@ -34,10 +34,22 @@ jobs: if: github.actor != 'dependabot[bot]' id: setup-bot uses: ./.github/actions/setup-bot + continue-on-error: true with: app-id: ${{ secrets.GH_APP_ID }} private-key: ${{ secrets.GH_APP_PRIVATE_KEY }} + - name: Determine GitHub token to use + id: resolve-token + run: | + if [ -n "${{ steps.setup-bot.outputs.token }}" ]; then + echo "Using GitHub App bot token" + echo "token=${{ steps.setup-bot.outputs.token }}" >> $GITHUB_OUTPUT + else + echo "Bot setup failed or token missing – falling back to GITHUB_TOKEN" + echo "token=${{ github.token }}" >> $GITHUB_OUTPUT + fi + - name: Check if actor is repo developer id: actor run: |