Skip to content

[Feature] ability to filter out symlinks from changed files #2673

@drew2a

Description

@drew2a

Is this feature missing in the latest version?

  • I'm using the latest release

Is your feature request related to a problem? Please describe.

Currently, tj-actions/changed-files returns a list of changed files, including symlinks.
For example, if I create a new symlink in the repository, it appears in all_changed_files.

In many CI/CD scenarios (linters, tests, build steps), processing symlinks is not useful, since they are just links and not actual source files.

At the moment, there is no built-in way to exclude symlinks from the outputs.

Describe the solution you'd like?

Introduce a new option, for example:

with:
  exclude_symlinks: true

When enabled, the action would automatically filter out all symlinks from the outputs (all_changed_files, added_files, etc.).

Describe alternatives you've considered?

No response

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions