add weekly 65 #40
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: Send Python weekly summary to telegram bot | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- 'docs/**/*-weekly.md' # when adding weekly file | |
- '!docs/en/**/*-weekly.md' | |
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@v1 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r resources/requirements.txt | |
- name: Generate weekly summary | |
run: | | |
python resources/weekly_summary.py | |
env: | |
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }} | |
TG_CHAT_ID: ${{ secrets.TG_CHAT_ID }} | |
ONLINE_ACTION: 'True' |