Skip to content

run main.py

run main.py #190

Workflow file for this run

name: run main.py
on:
schedule:
- cron: '30 16 * * *' # At 10:00 PM IST
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v2 # checkout the repository content to github runner
- 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 py script # run main.py
env:
SPOTIFY_CLIENT_ID: ${{ secrets.SPOTIFY_CLIENT_ID }}
SPOTIFY_CLIENT_SECRET: ${{ secrets.SPOTIFY_CLIENT_SECRET }}
SPOTIFY_REFRESH_TOKEN: ${{ secrets.SPOTIFY_REFRESH_TOKEN }}
SPOTIFY_RECENTLY_PLAYED: ${{ secrets.SPOTIFY_RECENTLY_PLAYED }}
BUCKET_NAME: ${{ secrets.BUCKET_NAME }}
run: python spotify_daily_job.py