GitHub Actions 1 · Workflow basics

Run only when certain files change

Limit a trigger to changes under given paths.

on:
  push:
    paths:
      - "src/**"
      - "package.json"

Official GitHub Actions 1 documentation

More workflow basics commands

All workflow basics commands · GitHub Actions 1 cheatsheet

Was this page helpful?