Skip to content

打卡

打卡 #21

Workflow file for this run

name: "打卡"
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
- cron: '30 0 * * *'
- cron: '0 12 * * *'
- cron: '30 12 * * *'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
- name: Cache deps
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Run script
env:
USER: ${{ secrets.USER }}
TZ: Asia/Shanghai
run: python main.py