History today #541
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: History today | |
on: | |
repository_dispatch: | |
workflow_dispatch: | |
schedule: | |
# * is a special character in YAML so you have to quote this string, utc timezone | |
- cron: '0 23 * * *' | |
env: | |
TZ: Asia/Shanghai | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: get history blog | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: '3.7' # Version range or exact version of a Python version to use, using SemVer's version range syntax | |
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified | |
cache: 'pip' | |
cache-dependency-path: 'today/requirements.txt' | |
- run: | | |
cd today | |
pip install -r requirements.txt | |
python today.py |