Skip to content

DingTalk_misson

DingTalk_misson #533

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: DingTalk_misson
on:
schedule:
- cron: "*/30 * * * *"
watch:
types: [started]
jobs:
build:
runs-on: ubuntu-latest
if: github.event_name == 'schedule' || github.event.repository.owner.id == github.event.sender.id # 定时任务直接执行;star 触发仅限仓库所有者
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests lxml
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run misson
run: |
python run.py "${{ secrets.token }}" "${{ secrets.secret }}" "${{ secrets.mids }}" "${{ secrets.book_ids }}"