Skip to content

Update data.py

Update data.py #19

Workflow file for this run

name: Update Utils Folder
on:
push:
branches: master
paths:
- "spotify/data.py"
jobs:
update-and-commit:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install spotipy python-dotenv
- name: Run index.py to update utils folder
env:
SPOTIFY_CLIENT_ID: ${{ secrets.SPOTIFY_CLIENT_ID }}
SPOTIFY_SECRET: ${{ secrets.SPOTIFY_SECRET }}
run: python spotify/index.py
- name: Commit model
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Updated Songs on Homepage
branch: master
commit_options: "--no-verify --signoff"
file_pattern: .
repository: .
tagging_message: "v1.0.0"
status_options: "--untracked-files=no"
add_options: "-u"
push_options: "--force"
skip_dirty_check: true