Skip to content

.github/workflows/main.yml #1148

.github/workflows/main.yml

.github/workflows/main.yml #1148

Workflow file for this run

on:
workflow_dispatch:
push:
branches:
- main
schedule:
- cron: '0 0 * * *' # @daily
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
# Also fetch the second-to-last commit so the script can determine,
# via git commands, which files changed in the most recent commit
fetch-depth: 2
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements/requirements.txt
- name: Run script
env:
SPOTIFY_CLIENT_ID: ${{ secrets.SPOTIFY_CLIENT_ID }}
SPOTIFY_CLIENT_SECRET: ${{ secrets.SPOTIFY_CLIENT_SECRET }}
run: python src/main.py --commit-and-push --auto-register