Skip to content

Commit ef4ff35

Browse files
authored
chore: Exclude contentwarehouse from daily generation. (#20946)
1 parent f3805ed commit ef4ff35

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/codegen.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,16 @@ jobs:
3838
script: |
3939
console.log('splitting service names list into batches')
4040
const services = ${{ needs.discovery.outputs.services }}
41+
const excludedServices = ['contentwarehouse']
42+
const filteredServices = services.filter(service => !excludedServices.includes(service))
4143
const hour = new Date().getHours()
4244
const MAX_BATCH_SIZE = 100
4345
const result = {
4446
batches: [],
4547
hour: new Date().getHours(),
4648
};
47-
for (let i = 0; i < services.length; i += MAX_BATCH_SIZE) {
48-
result.batches.push(services.slice(i, i + MAX_BATCH_SIZE))
49+
for (let i = 0; i < filteredServices.length; i += MAX_BATCH_SIZE) {
50+
result.batches.push(filteredServices.slice(i, i + MAX_BATCH_SIZE))
4951
}
5052
return result
5153
generate:

0 commit comments

Comments
 (0)