-
-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Add support for detecting changes in submodules #349
Comments
Thanks for reporting this issue. |
@pkit Seems like this is a feature request as submodules aren't supported at the moment and can you also include the workflow configuration i.e what were you trying to do ? Based on the current design all change detection is done locally via a git executable and no interactions to Github's API is performed. |
The github repo was checked out with all the submodules locally I can see that call stack goes like that: Example workflow excerpt: - uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: recursive
token: ${{ secrets.BUILD_BOT_TOKEN }}
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v14.4
with:
files: |
"submodule_name/**"
"*.js" |
Oh |
@pkit This should be resolved in the latest release. Thanks |
@jackton1 thanks and sorry. Didn't read into you code much. |
No worries, seems this requires more work since there's no clean way to do this from the super project. |
@jackton1 implemented, it was pretty involving |
Cool could you add a submodule that can be used for the test |
Hmm, I'm not sure I understand how the test output is checked. |
* feat: Add support for detecting submodules changes Closes: #349 * add bash<4.4 fix * add bash<4.4 fix * Added more than 1 submodule. * Update entrypoint.sh * Removed submodule. * Update test.yml * Update test.yml * Updated .gitmodules. * Updated submodule. * Updated submodule. * Added a new submodule resolving testing errors. * Added a new submodule. * Removed new submodule. * Fixed test. Co-authored-by: Tonye Jack <jtonye@ymail.com>
Is there an existing issue for this?
Does this issue exist in the latest version?
Describe the bug?
This action uses github API which will notice any submodule change as a change in
./submodule_name
"file" and nothing else.Actual changes in actual files will go unnoticed
To Reproduce
Run on any repo with a change in a submodule
See the following output:
What OS are you seeing the problem on?
all
Expected behavior?
Actual subdirectories are checked (not only the Github API output)
Relevant log output
No response
Anything else?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: