diff --git a/.github/workflows/codegen.yaml b/.github/workflows/codegen.yaml index dceaf457dbc..4d946f6a507 100644 --- a/.github/workflows/codegen.yaml +++ b/.github/workflows/codegen.yaml @@ -54,6 +54,10 @@ jobs: for (let i = 0; i < filteredServices.length; i += MAX_BATCH_SIZE) { result.batches.push(filteredServices.slice(i, i + MAX_BATCH_SIZE)) } + console.log(result) + if (result.hour > 2) { + console.warn(`Unexpected hour of the day: ${result.hour} from Date(${new Date()})`) + } return result generate: uses: googleapis/google-api-java-client-services/.github/workflows/generate.yaml@main @@ -61,7 +65,7 @@ jobs: secrets: inherit # The size of the batch is implicitly decided by the hour of the day. # For example, a job starting at "1:30" uses the chunk at the index 1 in the array. - if: github.event_name != 'workflow_dispatch' && ${{!!fromJson(needs.batch.outputs.services).batches[fromJson(needs.batch.outputs.services).hour]}} + if: ${{github.event_name != 'workflow_dispatch' && !!fromJson(needs.batch.outputs.services).batches[fromJson(needs.batch.outputs.services).hour]}} with: services: ${{toJson(fromJson(needs.batch.outputs.services).batches[fromJson(needs.batch.outputs.services).hour])}} generate_dispatch: