这是indexloc提供的服务,不要输入任何密码
Skip to content

Run Login Script

Run Login Script #1

Workflow file for this run

name: Run Login Script
on:
workflow_dispatch:
schedule:
- cron: "0 0 1 * *" # 每月1号运行一次
push:
branches:
- main
jobs:
login:
runs-on: ubuntu-latest
steps:
- name: Checkout 仓库代码
uses: actions/checkout@v2
- name: 安装 Playwright 所需依赖
run: |
npx playwright install-deps
- name: 设置 Python 环境
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: 安装依赖
run: |
python -m pip install --upgrade pip
pip install playwright aiofiles requests
- name: Install Playwright Browsers # 安装浏览器
run: |
playwright install
- name: 运行登录脚本
env:
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
WEBHOST: ${{ secrets.WEBHOST }}
run: |
python login_script.py