Building & Learning

A collection of mini projects, experiments, and things I find interesting in the world of tech. From automation scripts to fun side projects โ€” this is where I share what I'm working on.

๐Ÿงช

Mini Projects

Auto-Syncing YouTube Playlists with GitHub Actions

๐ŸŽต I maintain several YouTube playlists for my music page, but keeping the track list on the website up-to-date was a manual chore. So I built a small automation to fix that.

The solution uses GitHub Actions to run a daily job that fetches the latest video titles from each playlist using yt-dlp, updates a JSON file, and commits the changes automatically.

Now, whenever I add a song to a YouTube playlist, the website updates itself overnight. Zero manual work needed. โœจ

GitHub Actions Node.js yt-dlp JSON
๐Ÿ“š

Learning Notes

A Quick Guide to GitHub Actions

โšก GitHub Actions is a powerful CI/CD tool built right into GitHub. Here's what I've learned from setting up my first few workflows.

The basics: A workflow is defined in a .yml file under .github/workflows/. It runs on "triggers" like push, schedule (cron), or workflow_dispatch (manual trigger).

Key concepts:

โ€ข Jobs โ€” Independent units of work that run in parallel by default
โ€ข Steps โ€” Sequential commands within a job
โ€ข Actions โ€” Reusable building blocks (e.g., actions/checkout@v4)
โ€ข Secrets โ€” Encrypted variables for API keys and tokens

๐Ÿ’ก Pro tip: Use workflow_dispatch to test your workflows manually before relying on scheduled runs.

GitHub Actions CI/CD YAML Automation