Skip to content

Obtain the latest Python weekly newsletters every week #51

Obtain the latest Python weekly newsletters every week

Obtain the latest Python weekly newsletters every week #51

name: Obtain the latest Python weekly newsletters every week
on:
workflow_dispatch:
schedule:
- cron: '0 10 * * 0' # on Sunday 18:00 UTC+8
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: main
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r resources/requirements.txt
- name: Obtain weekly newsletters
run: |
python resources/weekly_collection.py
env:
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}
TG_CHAT_ID: ${{ secrets.TG_CHAT_ID }}