Auto Sign #1
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: Scheduled Python Script | |
on: | |
schedule: | |
# 每天的 08:00 UTC 运行 | |
- cron: '0 8 * * *' | |
jobs: | |
run-python-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 # 你可以指定具体的 Python 版本,如 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt # 假设你的依赖项在 requirements.txt 文件中 | |
- name: Run Python script | |
run: python auto_sign in.py # 替换为你的 Python 脚本文件名 |