Skip to content

Remove "root" dir from list #1448

Discussion options

You must be logged in to vote

Hi @rsorelli-hedgepoint to exclude the current working directory denoted by a . from the output you can set dir_names_exclude_current_dir to true

Example

...
      - name: Get changed directories
        id: changed-files
        uses: tj-actions/changed-files@v37.6.0
        with:
          ...
          dir_names_exclude_current_dir: true
          ...

Which appears to be set in your workflow file, I'll recommend upgrading to the latest version which should most likely resolve the bug
of outputting an empty string.

Let me know if a version upgrade doesn't fix the problem, you can file an issue and I'll take a look. Thanks

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jackton1
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants