Remove "root" dir from list #1448
-
Hi there, How can I remove the root dir "." from the list returned by the action ? - name: Get changed directories
id: changed-files
uses: tj-actions/[email protected]
with:
json: true
escape_json: true
files_ignore: |
.github/*
**/.gitignore
**/readme.md
**/template*.yaml
dir_names: true
dir_names_exclude_current_dir: true
dir_names_max_depth: 1 Output: ["dirA","dirB",""] Thanks in advance, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @rsorelli-hedgepoint to exclude the current working directory denoted by a Example...
- name: Get changed directories
id: changed-files
uses: tj-actions/[email protected]
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 Let me know if a version upgrade doesn't fix the problem, you can file an issue and I'll take a look. Thanks |
Beta Was this translation helpful? Give feedback.
-
Hi there ! Best regards |
Beta Was this translation helpful? Give feedback.
Hi @rsorelli-hedgepoint to exclude the current working directory denoted by a
.
from the output you can setdir_names_exclude_current_dir
totrue
Example
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