-
Notifications
You must be signed in to change notification settings - Fork 11
58 lines (53 loc) · 1.72 KB
/
BIZHINIANG.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
55
56
57
58
# 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: BIZHINIANG
on:
workflow_dispatch:
schedule:
- cron: '10 1 * * *'
# 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: BIZHINIANG_GET
env:
SESSDATA: ${{ secrets.SESSDATA }}
run: |
ls -l
python getimg.py ${SESSDATA}
- name: commit
run: |
git config --global user.email [email protected]
git config --global user.name action
git add .
git commit -m "update" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GHTO }}
- name: Make preview file
run: |
echo BIZHINIANG IMAGE DOWNLOAD PASSED. > report.txt
ls -al >> 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: 壁纸娘图片同步到仓库成功
body: file://report.txt
from: GitHub Actions
attachments: report.txt