Skip to content
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

Input argument to exclude deleted folders #2423

Open
2 tasks done
rpuserh opened this issue Feb 4, 2025 · 1 comment
Open
2 tasks done

Input argument to exclude deleted folders #2423

rpuserh opened this issue Feb 4, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@rpuserh
Copy link

rpuserh commented Feb 4, 2025

Is this feature missing in the latest version?

  • I'm using the latest release

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

Add option to exclude deleted folders.
For example if i have following file structure

.
|-- ws1
|   |-- m1.tf
|   `-- m2.tf
`-- ws2
    `-- m.tf

and now if i delete following files

.
|-- ws1
|   |-- m1.tf
|   `-- m2.tf (DELETE)
`-- ws2       (DELETE)
    `-- m.tf 

output id like to see is

['./ws1']

Describe the solution you'd like?

I'd like some new input that will exclude deleted folders from list exclude_deleted_folders

example

    steps:
      - uses: actions/checkout@v4
      - name: Get changed files
        id: changed-dir-selector
        uses: tj-actions/changed-files@v45
        with:
          dir_names: true
          json: true
          escape_json: false
          exclude_deleted_folders: true
          files: |
            **/*.tf
            *.tf
    outputs:
      any_modified: ${{ steps.changed-dir-selector.outputs.any_modified }}

Ill expect to have list of dirs that have added/changed/deleted files in var except dirs that were completely deleted

Describe alternatives you've considered?

Alternative will be just to write bash script

Anything else?

n/a

Code of Conduct

  • I agree to follow this project's Code of Conduct
@rpuserh rpuserh added the enhancement New feature or request label Feb 4, 2025
@tj-actions-bot
Copy link
Contributor

Thanks for reporting this issue, don't forget to star this project if you haven't already to help us reach a wider audience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants