How I Run 24/7 Automations for FREE Using GitHub Actions (No Servers Needed)

· Dev.to

I got tired of paying for servers just to run simple scheduled scripts. Cron jobs on a VPS? $5-20/month. AWS Lambda? Complexity overhead and surprise bills.

Then I realized: GitHub Actions gives you 2,000 free minutes/month on the free tier. That's enough to run a script every 2 hours, 24/7, for $0.

The Setup (5 Minutes)

Create .github/workflows/automation.yml:

name: 24/7 Automation on: schedule: - cron: '0 */2 * * *' # Every 2 hours workflow_dispatch: # Manual trigger jobs: run: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: '3.11' - run

Read full story at source