You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where steps.changed_files.outputs.all is a space delineated list of all changed files in the Pull Request.
For my simple test PR, this equals: source: '.github/workflows/clang-format.yml lte/gateway/c/oai/tasks/nas/emm/msg/DetachAccept.c'
I am observing that Clang-Format is being applied to two files in this PR, which is unexpected. It is analyzing (and failing) on clang-format.yml.
The root cause appears to be within this line of list_files. In my usage (which seems reasonable?) a full file path is being passed for all potential Clang-Tidy targets. Yet this line and the subsequent extension filtering only apply if the arg.files is in fact a directory. Since my arg.files are not directories, no filtering is applied and we skip down to the else clause which appends all arg.files to the set of outputs for analysis.
It seems to me that the filtering logic (exclude and extension based) needs to be replicated for both branches of this if statement. I'll explore doing this and submit a Pull Request.
The text was updated successfully, but these errors were encountered:
I am using the following configuration of the GH Action.
Where steps.changed_files.outputs.all is a space delineated list of all changed files in the Pull Request.
For my simple test PR, this equals:
source: '.github/workflows/clang-format.yml lte/gateway/c/oai/tasks/nas/emm/msg/DetachAccept.c'
I am observing that Clang-Format is being applied to two files in this PR, which is unexpected. It is analyzing (and failing) on
clang-format.yml
.The root cause appears to be within this line of list_files. In my usage (which seems reasonable?) a full file path is being passed for all potential Clang-Tidy targets. Yet this line and the subsequent extension filtering only apply if the arg.files is in fact a directory. Since my arg.files are not directories, no filtering is applied and we skip down to the else clause which appends all arg.files to the set of outputs for analysis.
It seems to me that the filtering logic (exclude and extension based) needs to be replicated for both branches of this if statement. I'll explore doing this and submit a Pull Request.
The text was updated successfully, but these errors were encountered: