The script works on your computer. But your computer isn't always on, and "remember to run this manually every day" defeats the whole point.

In this chapter, we push the code to GitHub and set up a GitHub Action — a free, scheduled job that runs the script every day automatically, on GitHub's servers, whether your laptop is open or not.

What Is GitHub Actions?

GitHub Actions is GitHub's built-in automation system. You write a small configuration file that says "run this on a schedule," and GitHub takes care of the rest. It spins up a fresh computer, runs your script, and shuts down again. You pay nothing. It just works.

The configuration file is called a workflow and it lives in your repo at .github/workflows/sync.yml. We'll create it in this chapter.