024

Conditionally run GitHub Actions Steps


- uses: dorny/[email protected]
  id: filter
  with:
      # inline YAML or path to separate file (e.g.: .github/filters.yaml)
      filters: |
      backend:
          - 'backend/**/*'
      frontend:
          - 'frontend/**/*'

# run only if 'backend' files were changed
- name: backend unit tests
  if: steps.filter.outputs.backend == 'true'
  run: ...