Node.js action to detect if path changed.
Required The path to detect.
Whether or not change in files in the path.
- 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...
Available:
- Detects changed paths in PR
- Detect
master
branch.
TODO:
- Detect release branches.
Basic ideas of this actions is stealed from has-changed-path, but it's rewritten in JavaScript for detailed detections.