Aulafy
Courses/Agents and automation/GitHub Actions and Routines

GitHub Actions and Routines

Not everything you schedule should be agentic. Tests, lint, and deploy are CI. Triage, review, investigation, and change proposals can be agent work with guardrails.

  • Choose between GitHub Actions, local cron, loops, and agentic tasks.
  • Avoid automations that write without human review.
  • Design a PR review workflow that beginners can replicate.

What to Use

  • GitHub Actions: tests, build, lint, deploy, repeatable tasks without open-ended criteria.
  • Local cron or VPS: private tasks that need files or services on your machine.
  • Loop: time-based monitoring with a clear stop condition.
  • Scheduled agent: investigate, summarize, comment on PRs, or prepare drafts.
TerminalCode
name: ai-pr-check
on:
  pull_request:
    types: [opened, synchronize]

jobs:
  deterministic-checks:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: npm ci
      - run: npm run lint
      - run: npm test -- --runInBand