Skip to content

Weekly Melon Playlist #124

Weekly Melon Playlist

Weekly Melon Playlist #124

Workflow file for this run

name: Weekly Melon Playlist
on:
schedule:
# Runs at 5:05 UTC every Monday
- cron: "5 5 * * MON"
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: |
cd MelonYTMPlaylist
python3 -m pip install -r requirements.txt
python3 -m pip install packages/ytmusicapi-1.7.4.dev3+gffc0eba-py3-none-any.whl
- 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 weekly.py