-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (80 loc) · 3.37 KB
/
openstack_pr_check.yaml
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Check OpenStack PR
on:
schedule:
- cron: '0 0 * * 1-5'
issue_comment:
types: [created]
jobs:
package_status_check:
name: Check openstack pr list
if: ${{ contains(github.event.comment.body, 'recheck_pr_official') || contains(github.event.comment.body, 'recheck_pr_test') || github.event_name == 'schedule' }}
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Install python3
uses: actions/setup-python@v2
- name: Install requirement
run: |
sudo apt install python3-pip git
- name: Run the script
run: |
git clone https://gitee.com/openeuler/openstack
cd openstack/tools/oos
pip install -r requirements.txt
pip install -e .
cd scripts
export GITEE_USER_TOKEN=${{ secrets.gitee_user_token }}
python3 ./check_openstack_sig_pr.py
- name: Send email to SIG
if: ${{ contains(github.event.comment.body, 'recheck_pr_official') || github.event_name == 'schedule' }}
uses: dawidd6/[email protected]
with:
# Required mail server address:
server_address: smtp.qq.com
# Required mail server port:
server_port: 465
# Optional (recommended): mail server username:
username: ${{secrets.MAIL_USERNAME}}
# Optional (recommended) mail server password:
password: ${{secrets.MAIL_PASSWORD}}
# Required mail subject:
subject: OpenStack PR Daily Fetch
# Required recipients' addresses:
# Required sender full name (address can be skipped):
from: OpenStack CI Bot # <[email protected]>
# Optional whether this connection use TLS (default is true if server_port is 465)
secure: true
# Optional plain body:
html_body: file://openstack/tools/oos/scripts/result_body.html
# Optional unsigned/invalid certificates allowance:
ignore_cert: true
# Optional priority: 'high', 'normal' (default) or 'low'
priority: normal
- name: Send email for Debug
if: ${{ contains(github.event.comment.body, 'recheck_pr_test') }}
uses: dawidd6/[email protected]
with:
# Required mail server address:
server_address: smtp.qq.com
# Required mail server port:
server_port: 465
# Optional (recommended): mail server username:
username: ${{secrets.MAIL_USERNAME}}
# Optional (recommended) mail server password:
password: ${{secrets.MAIL_PASSWORD}}
# Required mail subject:
subject: OpenStack PR Daily Fetch
# Required recipients' addresses:
# Required sender full name (address can be skipped):
from: OpenStack CI Bot # <[email protected]>
# Optional whether this connection use TLS (default is true if server_port is 465)
secure: true
# Optional plain body:
html_body: file://openstack/tools/oos/scripts/result_body.html
# Optional unsigned/invalid certificates allowance:
ignore_cert: true
# Optional priority: 'high', 'normal' (default) or 'low'
priority: normal