fix: excluding current dir with max depth less than 2 (#1375)

Co-authored-by: tj-actions[bot] <109116665+tj-actions-bot@users.noreply.github.com>
Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
Tonye Jack
2023-07-13 13:01:23 -06:00
committed by GitHub
parent ef327f98b5
commit 2a968ff601
4 changed files with 6 additions and 5 deletions

View File

@@ -192,7 +192,7 @@ export const getChangeTypeFiles = async ({
}): Promise<{paths: string; count: string}> => {
const files = [
...new Set(getChangeTypeFilesGenerator({inputs, changedFiles, changeTypes}))
]
].filter(Boolean)
if (inputs.json) {
return {
@@ -236,7 +236,7 @@ export const getAllChangeTypeFiles = async ({
}): Promise<{paths: string; count: string}> => {
const files = [
...new Set(getAllChangeTypeFilesGenerator({inputs, changedFiles}))
]
].filter(Boolean)
if (inputs.json) {
return {