-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (29 loc) · 1.04 KB
/
actions.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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