Scrape Telegram bot API #12
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
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 12 * * *' # Every day at 12:00 (noon). | |
name: Scrape Telegram bot API | |
jobs: | |
build: | |
name: Scrape | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Install dependencies | |
run: > | |
pip install requests==2.32.3 beautifulsoup4==4.12.3 html5lib==1.1 | |
- name: Scrape API | |
run: python buildSrc/src/main/resources/scrape.py | |
- name: Push changes | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Update Bot API spec. | |
branch: dev |