How to ignore multiple directories with files_ignore
?
#1398
Answered
by
jackton1
vitalii-dubovoi
asked this question in
Q&A
-
Hello, how can I add two, or multiple directories to ignore with - name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v37
with:
files_ignore: |
scripts/**/*
.github/**/*
dir_names: true # Show only dirs thet were changed
dir_names_exclude_current_dir: true # Skip to show root (.) dir
json: true
dir_names_max_depth: 2 But it returns an output like this - |
Beta Was this translation helpful? Give feedback.
Answered by
jackton1
Jul 23, 2023
Replies: 1 comment
-
Hi @vitalii-dubovoy to exclude the directory itself you can use the directory name only - name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v37
with:
files_ignore: |
scripts
.github/**
... |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jackton1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @vitalii-dubovoy to exclude the directory itself you can use the directory name only
scripts
or usescripts/**