Check OpenStack PR #696
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 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/action-send-mail@v3.6.0 | |
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: | |
to: zh.f@outlook.com,hanguangyu@uniontech.com,zhangy1317@chinaunicom.cn, zhengting13@huawei.com | |
# Required sender full name (address can be skipped): | |
from: OpenStack CI Bot # <user@example.com> | |
# 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/action-send-mail@v3.6.0 | |
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: | |
to: wangxiyuan@huawei.com | |
# Required sender full name (address can be skipped): | |
from: OpenStack CI Bot # <user@example.com> | |
# 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 |