Daily Melon Playlist #473
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: Daily Melon Playlist | |
on: | |
schedule: | |
# Runs at 5:05 UTC every day | |
- cron: '5 5 * * *' | |
workflow_dispatch: | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
run: | | |
git clone https://github.com/JohnHKoh/MelonYTMPlaylist.git | |
- name: Install dependencies | |
run: | | |
python3 -m pip install ytmusicapi==0.25.2 | |
python3 -m pip install pyquery | |
python3 -m pip install opencv-python | |
- name: Run script | |
env: | |
RAW_HEADERS: ${{ secrets.RAW_HEADERS }} | |
CONFIG_JSON: ${{ secrets.CONFIG_JSON }} | |
run: | | |
cd ./MelonYTMPlaylist | |
echo "$RAW_HEADERS" >> raw_headers.txt | |
echo "$CONFIG_JSON" >> config.json | |
cd src | |
python setup.py | |
python daily.py |