Comments (5)
Given the unique use case I’ve added support for setting the outputs to true
but noting that it would only be false
if a pattern is specified.
from changed-files.
Thanks for reporting this issue, don't forget to star this project if you haven't already to help us reach a wider audience.
from changed-files.
Hi @AndreyNautilus, to clarify the any_{changed, modified}
outputs. As highlighted in the documentation, requires at least one file pattern.
any_changed | string | Returns true when any of the filenames provided using the files or files_ignore inputs have changed. i.e.includes a combination of all added, copied, modified and renamed files (ACMR). |
---|
Note
The filePatterns
array mentioned comprises of ignored and included file/directory patterns and at least one pattern needs to be provided.
If you intend to have an empty file passed to the files_ignore_from_source_file
input in such a scenario both outputs would remain false
.
The any
in the context of the output specifically means "any of the files I want to filter" which doesn't apply to cases when no filters are specified.
I hope that clears things up.
from changed-files.
@jackton1 thanks for the explanation.
Then the documentation is a bit confusing. As you pointed out the description for the output says:
Returns true when any of the filenames provided using the
files
orfiles_ignore
inputs have changed
while the description for files
input says:
File and directory patterns used to detect changes (Defaults to the entire repo if unset).
Which makes an impression that if files
input is omitted, it defaults to something like **
, and that should make any_changed
/any_modified
outputs true
.
I agree with "not a bug" resolution, but it seems the documentation should be a bit more accurate.
from changed-files.
Thank you for the fix!
from changed-files.
Related Issues (20)
- [BUG] `path` input does not work in combination with Github API approach HOT 4
- [BUG] `warnUnsupportedRESTAPIInputs` failing with composite action & `use_rest_api`
- [Feature] Enable `Diff` between Latest PR commit and the Previous one HOT 3
- [BUG] Error: Unable to locate the git repository in the given path HOT 4
- Merging issue_comment with pull_request HOT 5
- [BUG] Inconsistent documentation about fetch_depth parameter HOT 2
- [Feature] Suppress warning message? HOT 1
- [BUG] Each file in a new line - Separator doesn't work HOT 2
- [Feature] add option to return forward slashes on windows instead of backslash HOT 4
- [Feature] add option to ignore submodules HOT 1
- [BUG] Changes since Last commit on the branch brings all files since the beggining of the branch HOT 5
- [Feature] Changed directory HOT 2
- [Feature] Get version of files before they were edited HOT 4
- [Feature] add previous tag regexp pattern HOT 3
- [Feature] Allow selecting characteristics about the directories we want to get changes from HOT 2
- [BUG] Cannot unmarshal matrix param HOT 2
- [BUG] Re-running a workflow triggered by a tag event causes the wrong previous tag to be selected HOT 3
- [BUG] fetch_missing_history_max_retries when github api HOT 1
- [Feature] Ignore files with only comment changes HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from changed-files.