yuqi1129 opened a new pull request, #10211: URL: https://github.com/apache/gravitino/pull/10211
### What changes were proposed in this pull request? This pull request updates the `.github/workflows/cherry-pick-branch.yml` workflow to improve how authentication tokens are handled when creating pull requests. The main change is to use a Personal Access Token (PAT) or GitHub App token if available, which ensures that downstream CI workflows are correctly triggered by pull requests created through this workflow. Authentication improvements: * Updated the `actions/checkout` step to use `secrets.CHERRY_PICK_TOKEN` if available, falling back to `secrets.GITHUB_TOKEN` only if necessary. This change helps ensure that pull request events trigger downstream workflows, which is not possible when using the default `GITHUB_TOKEN`. * Modified the environment variable `GH_TOKEN` in the "Create Pull Request" step to use `secrets.CHERRY_PICK_TOKEN` if available, otherwise falling back to `secrets.GITHUB_TOKEN`. This maintains consistency and supports triggering CI on created pull requests. ### Why are the changes needed? For development efficiency. Fix: #10210 ### Does this PR introduce _any_ user-facing change? N/A ### How was this patch tested? Test locally. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
