Update Utils Folder #51
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Utils Folder | |
on: | |
schedule: | |
- cron: "0 0 1/10 * *" | |
push: | |
branches: master | |
paths: | |
- "spotify/data.py" | |
workflow_dispatch: | |
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_CLIENT_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 |