[CI] 新增调度流水线 CI 及sot流水线,调整clone及其他流水线为被调度模式 #2013
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check PR Template | |
on: | |
pull_request: | |
branches: [develop] | |
types: [opened, synchronize, reopened, edited] | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Clone paddle | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.13' | |
cache: 'pip' | |
- name: Install dependencies | |
run: | | |
pip install httpx | |
- name: Check PR Template | |
env: | |
AGILE_PULL_ID: ${{ github.event.pull_request.number }} | |
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
python tools/CheckPRTemplate.py; EXCODE=$? | |
echo "EXCODE: $EXCODE" | |
echo "ipipe_log_param_EXCODE: $EXCODE" | |
set +x | |
if [[ "$EXCODE" != "0" ]];then | |
echo -e "######################################################" | |
echo -e "If you encounter a situation where the PR template does not match the error message, please use the following link to update your PR: [ https://raw.githubusercontent.com/PaddlePaddle/Paddle/develop/.github/PULL_REQUEST_TEMPLATE.md ]" | |
echo -e "##ReferenceDocumentation: ##" | |
echo -e "[ https://github.com/PaddlePaddle/Paddle/wiki/PULL-REQUEST-TEMPLATE--REFERENCE ]" | |
echo -e "[ https://github.com/PaddlePaddle/Paddle/wiki/paddle_ci_manual ]" | |
echo -e "######################################################" | |
fi |