Skip to content

WebP Cloud 签到

WebP Cloud 签到 #83

Workflow file for this run

name: WebP Cloud 签到
on:
schedule:
- cron: '0 0 * * *' # 每天 UTC 时间 08:00 运行
workflow_dispatch: # 允许手动触发工作流程
jobs:
check-in:
runs-on: ubuntu-latest
steps:
# 步骤 1: 检出仓库代码
- name: Checkout repository
uses: actions/checkout@v3
# 步骤 2: 设置 Python
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x' # 使用最新的 Python 3 版本
# 步骤 3: 安装依赖
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
# 步骤 4: 运行签到脚本
- name: 运行WebP Cloud签到脚本
env:
WEBPCLOUD_TOKEN: ${{ secrets.WEBPCLOUD_TOKEN }}
WEBHOOK_KEY: ${{ secrets.WEBHOOK_KEY }}
SERVER_CHAN_KEY: ${{ secrets.SERVER_CHAN_KEY }}
SERVER_CHAN_CHANNEL: ${{secrets.SERVER_CHAN_CHANNEL}}
QMSG_KEY: ${{ secrets.QMSG_KEY }}
run: |
python scripts/webpCloud.py