Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to trigger a github action job or workflow based on modified file or directory on last commit

In Gitlabci, it's possible to trigger a specific job only if a file or a directory has been modified.

Is it possible to do the same thing with Github actions ?

like image 439
Antoine Avatar asked Sep 16 '25 07:09

Antoine


1 Answers

From the documentation:

on:
  push:
    paths:
    - '**.js'
like image 114
Antoine Avatar answered Sep 18 '25 10:09

Antoine