-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (28 loc) · 1 KB
/
main.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
35
36
name: run google-trends.py
on:
schedule:
- cron: '30 13 * * *' # Runs every day at 19:00 PM IST
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v3 # checkout the repository content to GitHub runner
- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.12' # install the python version needed
- name: install python packages
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: execute py script # run google_trends.py
run: python google_trends.py
env:
SERPAPI_KEY: ${{ secrets.SERPAPI_KEY }}
LOCATION: ${{ secrets.LOCATION }}
DB_NAME: ${{ secrets.DB_NAME }}
DB_USER: ${{ secrets.DB_USER }}
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
DB_HOST: ${{ secrets.DB_HOST }}
DB_PORT: ${{ secrets.DB_PORT }}