Skip to content

Koronawirus Komunikaty #908

Koronawirus Komunikaty

Koronawirus Komunikaty #908

name: Koronawirus Komunikaty
on:
schedule:
- cron: '5 22 * * *'
workflow_dispatch:
jobs:
build_koronawirus_komunikaty:
runs-on: ubuntu-latest
name: Koronawirus Komunikaty
env:
TEST_CHANNEL_URL: "@gpi_health_check"
CHANNEL_URL: "@gpi_koronawirus"
steps:
- uses: actions/checkout@v3
- name: setup python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: install requirements
run: pip install -r requirements.txt
- name: python script run
run: |
python gpi.py
env:
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
GIVEN_DATE: today
FEED_NAME: Koronawirus Komunikaty
ARTICLE_TYPE: Komunikat
FEED_URL: https://www.gov.pl/web/koronawirus/wiadomosci
CHANNEL_URL: ${{ env.CHANNEL_URL }}
TEST_CHANNEL_URL: ${{ env.TEST_CHANNEL_URL }}