Skip to content

Commit a91a94f

Browse files
committed
Tidy up logging
1 parent 44fb7e2 commit a91a94f

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/github.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ const chunk = (arr, len) => {
1212
return chunks
1313
}
1414

15+
16+
const monoRepoCount = 0;
17+
1518
const getRepos = async () => {
1619
const GITHUB_TOKEN = core.getInput('github_token')
1720
const repositoryType = core.getInput('repository_type') || 'all'
@@ -52,8 +55,7 @@ const getRepos = async () => {
5255
} else {
5356
core.warning(`Unable to find ${path} in ${repo.name}, not processing`)
5457
}
55-
}
56-
core.info(`Completed ${repo.name}`)
58+
}
5759
return repoData
5860
}
5961

@@ -66,6 +68,7 @@ const getRepos = async () => {
6668
const targetDefinition = await parseServiceDefinition(repo, target, pushMissing)
6769
targetDefinition.fromLocation = true
6870
repoData.push(...targetDefinition)
71+
monoRepoCount++
6972
}
7073
} else {
7174
core.warning(`Location file in ${repo._repo.name} at ${path} specified without valid spec.targets, will be skipped`)
@@ -121,7 +124,7 @@ const getRepos = async () => {
121124
return 0
122125
})
123126

124-
core.info(`Processed ${repoData.length} matching repositories`)
127+
core.info(`Processed ${repoData.length} total repositories, after adding ${monoRepoCount} from mono-repos`)
125128
return repoData
126129
}
127130

0 commit comments

Comments
 (0)