Skip to content

Commit e542963

Browse files
build: Fix condition syntax in codegen.yaml
1 parent 38c1764 commit e542963

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/codegen.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,15 @@ jobs:
5454
for (let i = 0; i < filteredServices.length; i += MAX_BATCH_SIZE) {
5555
result.batches.push(filteredServices.slice(i, i + MAX_BATCH_SIZE))
5656
}
57+
console.log(result)
5758
return result
5859
generate:
5960
uses: googleapis/google-api-java-client-services/.github/workflows/generate.yaml@main
6061
needs: batch
6162
secrets: inherit
6263
# The size of the batch is implicitly decided by the hour of the day.
6364
# For example, a job starting at "1:30" uses the chunk at the index 1 in the array.
64-
if: github.event_name != 'workflow_dispatch' && ${{!!fromJson(needs.batch.outputs.services).batches[fromJson(needs.batch.outputs.services).hour]}}
65+
if: ${{github.event_name != 'workflow_dispatch' && !!fromJson(needs.batch.outputs.services).batches[fromJson(needs.batch.outputs.services).hour]}}
6566
with:
6667
services: ${{toJson(fromJson(needs.batch.outputs.services).batches[fromJson(needs.batch.outputs.services).hour])}}
6768
generate_dispatch:

0 commit comments

Comments
 (0)