GIF Wiadomości #527
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: GIF Wiadomości | |
on: | |
schedule: | |
- cron: '5 22 * * *' | |
workflow_dispatch: | |
jobs: | |
build_gif_wiadomosci: | |
runs-on: ubuntu-latest | |
name: GIF Wiadomości | |
env: | |
TEST_CHANNEL_URL: "@gpi_health_check" | |
CHANNEL_URL: "@gpi_gif" | |
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: GIF Wiadomości | |
ARTICLE_TYPE: Wiadomość | |
FEED_URL: https://www.gov.pl/web/gif/wiadomosci | |
CHANNEL_URL: ${{ env.CHANNEL_URL }} | |
TEST_CHANNEL_URL: ${{ env.TEST_CHANNEL_URL }} |