forked from PaddlePaddle/Paddle
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (55 loc) · 2.1 KB
/
CheckPRTemplate.yml
File metadata and controls
59 lines (55 loc) · 2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Check PR Template
on:
pull_request:
branches: [develop]
types: [opened, synchronize, reopened, edited]
jobs:
check-bypass:
name: Check bypass
uses: ./.github/workflows/check-bypass.yml
with:
workflow-name: 'template'
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}
check:
name: Check
needs: check-bypass
if: ${{ needs.check-bypass.outputs.can-skip != 'true' }}
runs-on:
group: Template
timeout-minutes: 10
permissions:
contents: read
steps:
- name: Clone paddle
uses: actions/checkout@v4
- name: Check PR Template
env:
AGILE_PULL_ID: ${{ github.event.pull_request.number }}
AGILE_COMPILE_BRANCH: ${{ github.base_ref }}
AGILE_CHECKIN_AUTHOR: ${{ github.event.pull_request.user.login }}
method: check_pr
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: ${{ github.base_ref }}
run: |
python3 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
[[ $EXCODE -eq 0 ]] && {
export method=$method
echo $method
set +x
source ~/.icafe
wget -q --no-check-certificate https://paddle-qa.bj.bcebos.com/baidu/cloud/modify_icafe.py
set -x
python3 modify_icafe.py
}