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 betrueif the full sets of commits being compared include a change to any files in theappfolder, including subfolders. If the full sets of commits compared only include changes made to other files and folders outside theappfolder, thenany_changedwould befalse.only_changed: On the other hand, this would betrueonly when the full sets of commits compared only include changes to theappfolder if any other files change, thenonly_changedwould befalse.You want to use
any_changedfor …