Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[#10210] improvement(CI): Automatically run CI for auto-cherry-pick PRs (#10211)

Qi Yu01e75cb873b0
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 }}