forked from saddit/fjqndxx-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 956 Bytes
/
run.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
name: auto-study
on:
workflow_dispatch:
pull_request:
branches: [ develop, master ]
# schedule:
# - cron: 0 6 * * 3
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up python
uses: actions/setup-python@v2
with:
python-version: '3.9'
cache: 'pip'
- name: Install requirements
run: pip install -r requirements.txt
- name: Auto study
env:
username: ${{secrets.USERNAME}}
password: ${{secrets.PWD}}
pubKey: ${{secrets.PUB_KEY}}
ocrSecret: ${{secrets.OCR_SECRET_KEY}}
ocrKey: ${{secrets.OCR_API_KEY}}
ocrType: ${{secrets.OCR_TYPE}}
sendType: ${{secrets.SEND_TYPE}}
sendKey: ${{secrets.SEND_KEY}}
sendMode: ${{secrets.SEND_MODE}}
extUsers: ${{secrets.EXT_USERS}}
maxRetry: ${{secrets.MAX_RETRY}}
run:
python3 workflow.py