File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments