Auto EUserv #17
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: 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 |