This is an automated email from the ASF dual-hosted git repository.

yuqi4733 pushed a commit to branch auto_cherry_pick_test-b
in repository https://gitbox.apache.org/repos/asf/gravitino.git

commit d49c62d5ee88598386a480e5d04aa41debd87371
Author: yuqi <[email protected]>
AuthorDate: Wed Mar 4 21:24:00 2026 +0800

    fix
---
 .github/workflows/cherry-pick-branch.yml | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/cherry-pick-branch.yml 
b/.github/workflows/cherry-pick-branch.yml
index d5a3b89e87..e685d6bd0e 100644
--- a/.github/workflows/cherry-pick-branch.yml
+++ b/.github/workflows/cherry-pick-branch.yml
@@ -44,7 +44,10 @@ jobs:
         uses: actions/checkout@v4
         with:
           fetch-depth: 0
-          token: ${{ secrets.GITHUB_TOKEN }}
+          # A PAT (or GitHub App token) is required so that the created PR
+          # triggers downstream CI workflows.  GITHUB_TOKEN-created events
+          # are intentionally ignored by GitHub to prevent recursive runs.
+          token: ${{ secrets.CHERRY_PICK_TOKEN || secrets.GITHUB_TOKEN }}
 
       - name: Set up Git
         run: |
@@ -88,7 +91,7 @@ jobs:
       - name: Create Pull Request
         if: steps.cherry-pick.outputs.branch-name != ''
         env:
-          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+          GH_TOKEN: ${{ secrets.CHERRY_PICK_TOKEN || secrets.GITHUB_TOKEN }}
           COMMIT_MESSAGE: ${{ inputs.commit-message }}
           TARGET_BRANCH: ${{ inputs.target-branch }}
           COMMIT_SHA: ${{ inputs.commit-sha }}

Reply via email to