[Cherry-Pick][CI] Add check trigger and logic(#5191) (#5227)

* [CI] Add Cherry-Pick PR check logic

(cherry picked from commit 8bc2e13fdafaf339ebe518d7e5dccdbd8ff3fc2d)

* [Cherry-Pick][CI] Add check trigger and logic
This commit is contained in:
YuBaoku
2025-11-26 13:20:38 +08:00
committed by GitHub
parent e0c7ebff29
commit 49be443d02
6 changed files with 21 additions and 5 deletions

View File

@@ -4,7 +4,7 @@ on:
pull_request:
branches:
- develop
- 'release/*'
- 'release/**'
jobs:
check:

View File

@@ -4,7 +4,7 @@ on:
pull_request:
branches:
- develop
- 'release/*'
- 'release/**'
jobs:
pre-commit:

View File

@@ -4,7 +4,7 @@ on:
pull_request:
branches:
- develop
- 'release/*'
- 'release/**'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -4,7 +4,7 @@ on:
pull_request:
branches:
- develop
- 'release/*'
- 'release/**'
paths-ignore:
- '**.md'
- '**.txt'

View File

@@ -75,6 +75,21 @@ if [ "${HAS_SPECULATIVE_DECODING_MODIFY}" != "" ] && [ "${PR_ID}" != "" ]; then
check_approval "$echo_line1" 1 freeliuzc Deleter-D
fi
if [[ "${BRANCH}" != "develop" ]] && [[ -n "${PR_ID}" ]]; then
pr_info=$(curl -H "Authorization: token ${GITHUB_TOKEN}" \
https://api.github.com/repos/PaddlePaddle/FastDeploy/pulls/${PR_ID})
pr_title=$(echo "$pr_info" | jq -r '.title')
has_cp_tag=$(echo "$pr_title" | grep -o "\[Cherry-Pick\]" || true)
has_pr_number=$(echo "$pr_title" | grep -oE "#[0-9]{2,6}" || true)
if [[ -z "$has_cp_tag" ]] || [[ -z "$has_pr_number" ]]; then
echo_line="Cherry-Pick PR must come from develop and the title must contain [Cherry-Pick] and the original develop PR number (e.g., #5010). Approval required from FastDeploy RD: qingqing01(dangqingqing), Jiang-Jia-Jun(jiangjiajun), heavengate(dengkaipeng), yuanlehome(liuyuanle), hong19860320(hongming)."
check_approval "$echo_line" 1 qingqing01 Jiang-Jia-Jun heavengate yuanlehome hong19860320
fi
fi
if [ -n "${echo_list}" ];then
echo "****************"
echo -e "${echo_list[@]}"

View File

@@ -44,7 +44,8 @@ echo "uninstall org"
python -m pip uninstall paddlepaddle-xpu -y
python -m pip uninstall fastdeploy-xpu -y
python -m pip install paddlepaddle-xpu -i https://www.paddlepaddle.org.cn/packages/nightly/xpu-p800/
# python -m pip install paddlepaddle-xpu -i https://www.paddlepaddle.org.cn/packages/nightly/xpu-p800/
python -m pip install https://paddle-whl.bj.bcebos.com/nightly/xpu-p800/paddlepaddle-xpu/paddlepaddle_xpu-3.3.0.dev20251123-cp310-cp310-linux_x86_64.whl
echo "build whl"
bash custom_ops/xpu_ops/download_dependencies.sh develop