run newsGenerator.py #605
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: 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 |