Learn #88
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: Learn | |
on: | |
schedule: | |
- cron: '30 3 * * 2' # 每周二11时30分开始学习 | |
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#providing-inputs | |
workflow_dispatch: | |
inputs: | |
unconditional-invoking: | |
description: '手动学习' | |
type: boolean | |
required: true | |
default: true | |
jobs: | |
learn: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Start Learn | |
env: | |
KEY: ${{ secrets.KEY }} | |
WECHAT_WEBHOOK: ${{ secrets.WECHAT_WEBHOOK }} | |
DINGDING_WEBHOOK: ${{ secrets.DINGDING_WEBHOOK }} | |
run: | | |
pip3 install -r requirements.txt | |
python3 script.py -a -p -wx=$WECHAT_WEBHOOK -dd=$DINGDING_WEBHOOK $KEY |