Comments (4)
Hi @gstokkink, the path input is only required when you clone the repository and wouldn’t be useful otherwise.
See: https://github.com/tj-actions/changed-files/blob/main/src/inputs.ts#L250-L269 for a full list of unsupported inputs when using GitHub’s API
from changed-files.
@jackton1 maybe it should raise an error then? Or is that too complicated 😄 Anyway, that just means I will have to prefix the file paths manually. Thanks for the reply.
from changed-files.
Hi @gstokkink not sure what you mean by I will have to prefix the file paths manually
if you plan to change your working directory you can do so but none of that information is used to determine the list of changed files which only relies on the pull request number. Hopefully that provides some clarification.
from changed-files.
@jackton1 I meant prefixing the file patterns with the path I'm interested in. In this case the monorepo contains three apps apps/A
, apps/B
and apps/C
. In one job I'm then only interested in the file changes for, e.g., apps/A
.
With the local .git directory approach I could then set the path
input to apps/A
and use file pattern **.rb
, for example. The list of changed files would then also be relative to this directory. With the Github REST API approach I have to use the pattern apps/A/**/*.rb
, and also manually chop off the apps/A
prefix from the list of changed files when processing these as paths relative to the apps/A
directory.
from changed-files.
Related Issues (20)
- [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] any_modified/any_changed outputs are false for Pull Requests if no filters are set 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
- [BUG] Can't detect changed files in nested submodules HOT 1
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.