Skip to content

Commit

Permalink
Update daily_reminder.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dx2331lxz authored Aug 29, 2024
1 parent 01bddb6 commit 358f7a3
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/daily_reminder.yml
Original file line number Diff line number Diff line change
@@ -1 +1,28 @@
name: Run Python Script daily_report.py

on:
schedule:
- cron: '0 12 * * *' # UTC 时间 12:00,相当于中国时间 20:00
workflow_dispatch: # 允许手动触发

jobs:
run-script:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11' # 选择你需要的Python版本

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Python script
run: |
python daily_report.py

0 comments on commit 358f7a3

Please sign in to comment.