Skip to content

jimengio/pr-file-change-action

 
 

Repository files navigation

PR changed path detection

Node.js action to detect if path changed.

Inputs

path

Required The path to detect.

Outputs

changed

Whether or not change in files in the path.

Example usage

- name: Detect changes in demo/
  uses: jimengio/pr-file-change-action@master
  id: demo
  with:
    path: demo/

- name: Test dashboard
  if: steps.demo.outputs.changed == 'true'
  run: echo run demo...

Features

Available:

  • Detects changed paths in PR
  • Detect master branch.

TODO:

  • Detect release branches.

Credits

Basic ideas of this actions is stealed from has-changed-path, but it's rewritten in JavaScript for detailed detections.