Skip to content

run newsGenerator.py #594

run newsGenerator.py

run newsGenerator.py #594

Workflow file for this run

name: run newsGenerator.py
on:
schedule:
- cron: '0 18 * * *' # At 6pm UTC every day (4 am Brisbane, 6-7 am Auckland)
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v3 # checkout the repository content
- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.10' # install the python version needed
- name: install python packages
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: execute newsGenerator
env:
NEWSAPIKEY: ${{ secrets.NEWSAPIKEY }}
NEWSDATAKEY: ${{ secrets.NEWSDATAKEY }}
OPENAPIKEY: ${{ secrets.OPENAPIKEY }}
OPENAPIORG: ${{ secrets.OPENAPIORG }}
PRODCHATID: ${{ secrets.PRODCHATID }}
TELEGRAMBOTKEY: ${{ secrets.TELEGRAMBOTKEY }}
TESTCHATID: ${{ secrets.TESTCHATID }}
TELEGRAMBOTTESTKEY: ${{ secrets.TELEGRAMBOTTESTKEY }}
run: python newsGenerator.py