.github/workflows/clock.yml #29
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: "打卡" | |
on: | |
workflow_dispatch: # 手动触发 | |
schedule: | |
- cron: "50 23 * * 1-5" # 上班卡-周一到周五每天早上 7 点 50 分(北京时间) | |
- cron: "05 00 * * 1-5" # 额外打卡检查-周一到周五每天早上 8 点 05 分(北京时间),防止漏打 | |
- cron: "50 09 * * 1-5" # 下班卡-周一到周五每天下午 17 点 50 分(北京时间) | |
- cron: "05 10 * * 1-5" # 额外打卡检查-周一到周五每天下午 18 点 05 分(北京时间),防止漏打 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
- name: Install depend | |
run: | | |
pip install certifi | |
pip install cffi | |
pip install charset-normalizer | |
pip install cryptography | |
pip install idna | |
pip install numpy | |
pip install opencv-python | |
pip install pycparser | |
pip install requests | |
pip install urllib3 | |
- name: Start sign | |
env: | |
USER: ${{ secrets.USER }} | |
run: | | |
python index.py |