Difference between any_changed and only_changed #2210
-
I have a step to get a list of changes in a directory:
If I change a file in
In what scenario would My intention is to only run particular commands when files in |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @chadtomkiss, with the following code - name: Get changed app files
id: changed-files-app
uses: tj-actions/changed-files@v44
with:
files: |
app/**
You want to use Example ScenariosScenario 1: Changes in
|
Beta Was this translation helpful? Give feedback.
Hi @chadtomkiss, with the following code
any_changed
: This would betrue
if the full sets of commits being compared include a change to any files in theapp
folder, including subfolders. If the full sets of commits compared only include changes made to other files and folders outside theapp
folder, thenany_changed
would befalse
.only_changed
: On the other hand, this would betrue
only when the full sets of commits compared only include changes to theapp
folder if any other files change, thenonly_changed
would befalse
.You want to use
any_changed
for …