-
Notifications
You must be signed in to change notification settings - Fork 95
34 lines (28 loc) · 979 Bytes
/
auto_euserv.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
name: Auto EUserv
on:
schedule:
- cron: '0 4 * * *' # 每天 UTC 时间 04:00 运行,对应于 UTC+8 时间的每天中午 12:00
workflow_dispatch:
jobs:
run-script:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x' # 指定Python3.x
- name: Install dependencies
run: |
pip install requests beautifulsoup4
- name: Run script
env:
EUSERV_USERNAME: ${{ secrets.EUSERV_USERNAME }}
EUSERV_PASSWORD: ${{ secrets.EUSERV_PASSWORD }}
TRUECAPTCHA_USERID: ${{ secrets.TRUECAPTCHA_USERID }}
TRUECAPTCHA_APIKEY: ${{ secrets.TRUECAPTCHA_APIKEY }}
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}
TG_USER_ID: ${{ secrets.TG_USER_ID }}
MAILPARSER_DOWNLOAD_URL_ID: ${{ secrets.MAILPARSER_DOWNLOAD_URL_ID }}
run: python Github_Action.py