-
Notifications
You must be signed in to change notification settings - Fork 11
54 lines (49 loc) · 1.63 KB
/
bilibili_splash_download.yml
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
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: KAIPINGTU
on:
workflow_dispatch:
schedule:
- cron: '1 20 * * *'
# cron表达式,Actions时区是UTC时间,所以上午9点要往前推8个小时
jobs:
start:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: 下载开屏图
run: |
python get_app_splash.py
- name: commit
run: |
git config --global user.email non-reply@github.com
git config --global user.name action
git add .
git commit -m "B站开屏图更新" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GHTO }}
- name: Make preview file
run: |
echo bilibili open screen image download ok. > report.txt
ls -al ./app_splash/ >> report.txt
- name: "Send mail"
uses: dawidd6/action-send-mail@master
with:
server_address: smtp.163.com
server_port: 465
username: ${{ secrets.MAILUSERNAME }}
password: ${{ secrets.MAILPASSWORD }}
subject: B站开屏图下载成功
body: file://report.txt
to: 3377911508@qq.com
from: GitHub Actions