From e542963ca31206d7d1a549c1795d9e687980ad79 Mon Sep 17 00:00:00 2001 From: Diego Marquez Date: Thu, 19 Feb 2026 13:20:06 -0500 Subject: [PATCH 1/2] build: Fix condition syntax in codegen.yaml --- .github/workflows/codegen.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codegen.yaml b/.github/workflows/codegen.yaml index dceaf457dbc..02692c357ea 100644 --- a/.github/workflows/codegen.yaml +++ b/.github/workflows/codegen.yaml @@ -54,6 +54,7 @@ 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) return result generate: uses: googleapis/google-api-java-client-services/.github/workflows/generate.yaml@main @@ -61,7 +62,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: From 990a74480cb44b8bf77fe0a9ee597fb59839f1b6 Mon Sep 17 00:00:00 2001 From: Diego Marquez Date: Thu, 19 Feb 2026 13:25:00 -0500 Subject: [PATCH 2/2] Add warning for unexpected hour in codegen workflow --- .github/workflows/codegen.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/codegen.yaml b/.github/workflows/codegen.yaml index 02692c357ea..4d946f6a507 100644 --- a/.github/workflows/codegen.yaml +++ b/.github/workflows/codegen.yaml @@ -55,6 +55,9 @@ jobs: 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