File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 44 # See https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#schedule
55 - cron : ' 18 0-2 * * *'
66 workflow_dispatch :
7+ inputs :
8+ batch_index :
9+ type : number
10+ description : Index of the batch ([0-2])
711
812name : codegen
913jobs :
5761 secrets : inherit
5862 # The size of the batch is implicitly decided by the hour of the day.
5963 # For example, a job starting at "1:30" uses the chunk at the index 1 in the array.
60- # If you manually invoke the workflow other hours than 0:00 - 2:59 and the array's length is 3,
61- # this job is skipped because there's no element at the index in the array.
62- if : ${{!!fromJson(needs.batch.outputs.services).batches[fromJson(needs.batch.outputs.services).hour]}}
64+ if : github.event_name != 'workflow_dispatch' && ${{!!fromJson(needs.batch.outputs.services).batches[fromJson(needs.batch.outputs.services).hour]}}
6365 with :
6466 services : ${{toJson(fromJson(needs.batch.outputs.services).batches[fromJson(needs.batch.outputs.services).hour])}}
67+ generate_dispatch :
68+ uses : googleapis/google-api-java-client-services/.github/workflows/generate.yaml@main
69+ needs : batch
70+ secrets : inherit
71+ if : github.event_name == 'workflow_dispatch'
72+ with :
73+ services : ${{toJson(fromJson(needs.batch.outputs.services).batches[inputs.batch_index])}}
You can’t perform that action at this time.
0 commit comments