Skip to content

Commit 3d4228d

Browse files
committed
chore: organize workflow inputs alphabetically and add missing optional parameters
- Reorganize all workflow inputs in alphabetical order for better readability - Move settings and prompt parameters to the end of input lists - Add missing optional parameters (gemini_debug, gemini_model, google_api_key) to all workflows (reorganizing them made it easier to notice missing inputs) - Apply changes to both examples/workflows and .github/workflows directories - Ensure consistent parameter ordering across all Gemini workflows
1 parent 7027146 commit 3d4228d

9 files changed

Lines changed: 64 additions & 57 deletions

File tree

.github/workflows/gemini-invoke.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,17 @@ jobs:
5050
REPOSITORY: '${{ github.repository }}'
5151
ADDITIONAL_CONTEXT: '${{ inputs.additional_context }}'
5252
with:
53-
gemini_cli_version: '${{ vars.GEMINI_CLI_VERSION }}'
54-
gemini_api_key: '${{ secrets.GEMINI_API_KEY }}'
55-
gcp_workload_identity_provider: '${{ vars.GCP_WIF_PROVIDER }}'
56-
gcp_project_id: '${{ vars.GOOGLE_CLOUD_PROJECT }}'
5753
gcp_location: '${{ vars.GOOGLE_CLOUD_LOCATION }}'
54+
gcp_project_id: '${{ vars.GOOGLE_CLOUD_PROJECT }}'
5855
gcp_service_account: '${{ vars.SERVICE_ACCOUNT_EMAIL }}'
59-
use_vertex_ai: '${{ vars.GOOGLE_GENAI_USE_VERTEXAI }}'
60-
google_api_key: '${{ secrets.GOOGLE_API_KEY }}'
61-
use_gemini_code_assist: '${{ vars.GOOGLE_GENAI_USE_GCA }}'
56+
gcp_workload_identity_provider: '${{ vars.GCP_WIF_PROVIDER }}'
57+
gemini_api_key: '${{ secrets.GEMINI_API_KEY }}'
58+
gemini_cli_version: '${{ vars.GEMINI_CLI_VERSION }}'
6259
gemini_debug: '${{ fromJSON(vars.DEBUG || vars.ACTIONS_STEP_DEBUG || false) }}'
6360
gemini_model: '${{ vars.GEMINI_MODEL }}'
61+
google_api_key: '${{ secrets.GOOGLE_API_KEY }}'
62+
use_gemini_code_assist: '${{ vars.GOOGLE_GENAI_USE_GCA }}'
63+
use_vertex_ai: '${{ vars.GOOGLE_GENAI_USE_VERTEXAI }}'
6464
settings: |-
6565
{
6666
"model": {

.github/workflows/gemini-issue-fixer.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,17 @@ jobs:
4949
ISSUE_BODY: '${{ github.event.issue.body }}'
5050
BRANCH_NAME: 'gemini-fix-${{ github.event.issue.number }}'
5151
with:
52-
gemini_cli_version: '${{ vars.GEMINI_CLI_VERSION }}'
53-
gemini_api_key: '${{ secrets.GEMINI_API_KEY }}'
54-
gcp_workload_identity_provider: '${{ vars.GCP_WIF_PROVIDER }}'
55-
gcp_project_id: '${{ vars.GOOGLE_CLOUD_PROJECT }}'
5652
gcp_location: '${{ vars.GOOGLE_CLOUD_LOCATION }}'
53+
gcp_project_id: '${{ vars.GOOGLE_CLOUD_PROJECT }}'
5754
gcp_service_account: '${{ vars.SERVICE_ACCOUNT_EMAIL }}'
58-
use_vertex_ai: '${{ vars.GOOGLE_GENAI_USE_VERTEXAI }}'
55+
gcp_workload_identity_provider: '${{ vars.GCP_WIF_PROVIDER }}'
56+
gemini_api_key: '${{ secrets.GEMINI_API_KEY }}'
57+
gemini_cli_version: '${{ vars.GEMINI_CLI_VERSION }}'
58+
gemini_debug: '${{ fromJSON(vars.DEBUG || vars.ACTIONS_STEP_DEBUG || false) }}'
59+
gemini_model: '${{ vars.GEMINI_MODEL }}'
60+
google_api_key: '${{ secrets.GOOGLE_API_KEY }}'
5961
use_gemini_code_assist: '${{ vars.GOOGLE_GENAI_USE_GCA }}'
62+
use_vertex_ai: '${{ vars.GOOGLE_GENAI_USE_VERTEXAI }}'
6063
settings: |-
6164
{
6265
"debug": ${{ fromJSON(env.DEBUG || env.ACTIONS_STEP_DEBUG || false) }},

.github/workflows/gemini-review.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,17 @@ jobs:
5252
REPOSITORY: '${{ github.repository }}'
5353
ADDITIONAL_CONTEXT: '${{ inputs.additional_context }}'
5454
with:
55-
gemini_cli_version: '${{ vars.GEMINI_CLI_VERSION }}'
56-
gcp_workload_identity_provider: '${{ vars.GCP_WIF_PROVIDER }}'
57-
gcp_project_id: '${{ vars.GOOGLE_CLOUD_PROJECT }}'
5855
gcp_location: '${{ vars.GOOGLE_CLOUD_LOCATION }}'
56+
gcp_project_id: '${{ vars.GOOGLE_CLOUD_PROJECT }}'
5957
gcp_service_account: '${{ vars.SERVICE_ACCOUNT_EMAIL }}'
58+
gcp_workload_identity_provider: '${{ vars.GCP_WIF_PROVIDER }}'
6059
gemini_api_key: '${{ secrets.GEMINI_API_KEY }}'
61-
use_vertex_ai: '${{ vars.GOOGLE_GENAI_USE_VERTEXAI }}'
60+
gemini_cli_version: '${{ vars.GEMINI_CLI_VERSION }}'
61+
gemini_debug: '${{ fromJSON(vars.DEBUG || vars.ACTIONS_STEP_DEBUG || false) }}'
62+
gemini_model: '${{ vars.GEMINI_MODEL }}'
6263
google_api_key: '${{ secrets.GOOGLE_API_KEY }}'
6364
use_gemini_code_assist: '${{ vars.GOOGLE_GENAI_USE_GCA }}'
64-
gemini_debug: '${{ fromJSON(vars.DEBUG || vars.ACTIONS_STEP_DEBUG || false) }}'
65+
use_vertex_ai: '${{ vars.GOOGLE_GENAI_USE_VERTEXAI }}'
6566
settings: |-
6667
{
6768
"model": {

.github/workflows/gemini-scheduled-triage.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,17 +92,17 @@ jobs:
9292
REPOSITORY: '${{ github.repository }}'
9393
AVAILABLE_LABELS: '${{ steps.get_labels.outputs.available_labels }}'
9494
with:
95-
gemini_cli_version: '${{ vars.GEMINI_CLI_VERSION }}'
96-
gcp_workload_identity_provider: '${{ vars.GCP_WIF_PROVIDER }}'
97-
gcp_project_id: '${{ vars.GOOGLE_CLOUD_PROJECT }}'
9895
gcp_location: '${{ vars.GOOGLE_CLOUD_LOCATION }}'
96+
gcp_project_id: '${{ vars.GOOGLE_CLOUD_PROJECT }}'
9997
gcp_service_account: '${{ vars.SERVICE_ACCOUNT_EMAIL }}'
98+
gcp_workload_identity_provider: '${{ vars.GCP_WIF_PROVIDER }}'
10099
gemini_api_key: '${{ secrets.GEMINI_API_KEY }}'
101-
use_vertex_ai: '${{ vars.GOOGLE_GENAI_USE_VERTEXAI }}'
102-
google_api_key: '${{ secrets.GOOGLE_API_KEY }}'
103-
use_gemini_code_assist: '${{ vars.GOOGLE_GENAI_USE_GCA }}'
100+
gemini_cli_version: '${{ vars.GEMINI_CLI_VERSION }}'
104101
gemini_debug: '${{ fromJSON(vars.DEBUG || vars.ACTIONS_STEP_DEBUG || false) }}'
105102
gemini_model: '${{ vars.GEMINI_MODEL }}'
103+
google_api_key: '${{ secrets.GOOGLE_API_KEY }}'
104+
use_gemini_code_assist: '${{ vars.GOOGLE_GENAI_USE_GCA }}'
105+
use_vertex_ai: '${{ vars.GOOGLE_GENAI_USE_VERTEXAI }}'
106106
settings: |-
107107
{
108108
"model": {

.github/workflows/gemini-triage.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,17 @@ jobs:
6262
ISSUE_BODY: '${{ github.event.issue.body }}'
6363
AVAILABLE_LABELS: '${{ steps.get_labels.outputs.available_labels }}'
6464
with:
65-
gemini_cli_version: '${{ vars.GEMINI_CLI_VERSION }}'
66-
gcp_workload_identity_provider: '${{ vars.GCP_WIF_PROVIDER }}'
67-
gcp_project_id: '${{ vars.GOOGLE_CLOUD_PROJECT }}'
6865
gcp_location: '${{ vars.GOOGLE_CLOUD_LOCATION }}'
66+
gcp_project_id: '${{ vars.GOOGLE_CLOUD_PROJECT }}'
6967
gcp_service_account: '${{ vars.SERVICE_ACCOUNT_EMAIL }}'
68+
gcp_workload_identity_provider: '${{ vars.GCP_WIF_PROVIDER }}'
7069
gemini_api_key: '${{ secrets.GEMINI_API_KEY }}'
71-
use_vertex_ai: '${{ vars.GOOGLE_GENAI_USE_VERTEXAI }}'
70+
gemini_cli_version: '${{ vars.GEMINI_CLI_VERSION }}'
71+
gemini_debug: '${{ fromJSON(vars.DEBUG || vars.ACTIONS_STEP_DEBUG || false) }}'
72+
gemini_model: '${{ vars.GEMINI_MODEL }}'
7273
google_api_key: '${{ secrets.GOOGLE_API_KEY }}'
7374
use_gemini_code_assist: '${{ vars.GOOGLE_GENAI_USE_GCA }}'
74-
gemini_debug: '${{ fromJSON(vars.DEBUG || vars.ACTIONS_STEP_DEBUG || false) }}'
75+
use_vertex_ai: '${{ vars.GOOGLE_GENAI_USE_VERTEXAI }}'
7576
settings: |-
7677
{
7778
"model": {

examples/workflows/gemini-assistant/gemini-invoke.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,17 @@ jobs:
5050
REPOSITORY: '${{ github.repository }}'
5151
ADDITIONAL_CONTEXT: '${{ inputs.additional_context }}'
5252
with:
53-
gemini_cli_version: '${{ vars.GEMINI_CLI_VERSION }}'
54-
gemini_api_key: '${{ secrets.GEMINI_API_KEY }}'
55-
gcp_workload_identity_provider: '${{ vars.GCP_WIF_PROVIDER }}'
56-
gcp_project_id: '${{ vars.GOOGLE_CLOUD_PROJECT }}'
5753
gcp_location: '${{ vars.GOOGLE_CLOUD_LOCATION }}'
54+
gcp_project_id: '${{ vars.GOOGLE_CLOUD_PROJECT }}'
5855
gcp_service_account: '${{ vars.SERVICE_ACCOUNT_EMAIL }}'
59-
use_vertex_ai: '${{ vars.GOOGLE_GENAI_USE_VERTEXAI }}'
60-
google_api_key: '${{ secrets.GOOGLE_API_KEY }}'
61-
use_gemini_code_assist: '${{ vars.GOOGLE_GENAI_USE_GCA }}'
56+
gcp_workload_identity_provider: '${{ vars.GCP_WIF_PROVIDER }}'
57+
gemini_api_key: '${{ secrets.GEMINI_API_KEY }}'
58+
gemini_cli_version: '${{ vars.GEMINI_CLI_VERSION }}'
6259
gemini_debug: '${{ fromJSON(vars.DEBUG || vars.ACTIONS_STEP_DEBUG || false) }}'
6360
gemini_model: '${{ vars.GEMINI_MODEL }}'
61+
google_api_key: '${{ secrets.GOOGLE_API_KEY }}'
62+
use_gemini_code_assist: '${{ vars.GOOGLE_GENAI_USE_GCA }}'
63+
use_vertex_ai: '${{ vars.GOOGLE_GENAI_USE_VERTEXAI }}'
6464
settings: |-
6565
{
6666
"model": {
@@ -111,11 +111,11 @@ jobs:
111111
},
112112
"tools": {
113113
"core": [
114-
"run_shell_command(cat)",
115-
"run_shell_command(echo)",
116-
"run_shell_command(grep)",
117-
"run_shell_command(head)",
118-
"run_shell_command(tail)"
114+
"run_shell_command(cat)",
115+
"run_shell_command(echo)",
116+
"run_shell_command(grep)",
117+
"run_shell_command(head)",
118+
"run_shell_command(tail)"
119119
]
120120
}
121121
}

examples/workflows/issue-triage/gemini-scheduled-triage.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,17 +92,17 @@ jobs:
9292
REPOSITORY: '${{ github.repository }}'
9393
AVAILABLE_LABELS: '${{ steps.get_labels.outputs.available_labels }}'
9494
with:
95-
gemini_cli_version: '${{ vars.GEMINI_CLI_VERSION }}'
96-
gcp_workload_identity_provider: '${{ vars.GCP_WIF_PROVIDER }}'
97-
gcp_project_id: '${{ vars.GOOGLE_CLOUD_PROJECT }}'
9895
gcp_location: '${{ vars.GOOGLE_CLOUD_LOCATION }}'
96+
gcp_project_id: '${{ vars.GOOGLE_CLOUD_PROJECT }}'
9997
gcp_service_account: '${{ vars.SERVICE_ACCOUNT_EMAIL }}'
98+
gcp_workload_identity_provider: '${{ vars.GCP_WIF_PROVIDER }}'
10099
gemini_api_key: '${{ secrets.GEMINI_API_KEY }}'
101-
use_vertex_ai: '${{ vars.GOOGLE_GENAI_USE_VERTEXAI }}'
102-
google_api_key: '${{ secrets.GOOGLE_API_KEY }}'
103-
use_gemini_code_assist: '${{ vars.GOOGLE_GENAI_USE_GCA }}'
100+
gemini_cli_version: '${{ vars.GEMINI_CLI_VERSION }}'
104101
gemini_debug: '${{ fromJSON(vars.DEBUG || vars.ACTIONS_STEP_DEBUG || false) }}'
105102
gemini_model: '${{ vars.GEMINI_MODEL }}'
103+
google_api_key: '${{ secrets.GOOGLE_API_KEY }}'
104+
use_gemini_code_assist: '${{ vars.GOOGLE_GENAI_USE_GCA }}'
105+
use_vertex_ai: '${{ vars.GOOGLE_GENAI_USE_VERTEXAI }}'
106106
settings: |-
107107
{
108108
"model": {

examples/workflows/issue-triage/gemini-triage.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,17 @@ jobs:
6262
ISSUE_BODY: '${{ github.event.issue.body }}'
6363
AVAILABLE_LABELS: '${{ steps.get_labels.outputs.available_labels }}'
6464
with:
65-
gemini_cli_version: '${{ vars.GEMINI_CLI_VERSION }}'
66-
gcp_workload_identity_provider: '${{ vars.GCP_WIF_PROVIDER }}'
67-
gcp_project_id: '${{ vars.GOOGLE_CLOUD_PROJECT }}'
6865
gcp_location: '${{ vars.GOOGLE_CLOUD_LOCATION }}'
66+
gcp_project_id: '${{ vars.GOOGLE_CLOUD_PROJECT }}'
6967
gcp_service_account: '${{ vars.SERVICE_ACCOUNT_EMAIL }}'
68+
gcp_workload_identity_provider: '${{ vars.GCP_WIF_PROVIDER }}'
7069
gemini_api_key: '${{ secrets.GEMINI_API_KEY }}'
71-
use_vertex_ai: '${{ vars.GOOGLE_GENAI_USE_VERTEXAI }}'
70+
gemini_cli_version: '${{ vars.GEMINI_CLI_VERSION }}'
71+
gemini_debug: '${{ fromJSON(vars.DEBUG || vars.ACTIONS_STEP_DEBUG || false) }}'
72+
gemini_model: '${{ vars.GEMINI_MODEL }}'
7273
google_api_key: '${{ secrets.GOOGLE_API_KEY }}'
7374
use_gemini_code_assist: '${{ vars.GOOGLE_GENAI_USE_GCA }}'
74-
gemini_debug: '${{ fromJSON(vars.DEBUG || vars.ACTIONS_STEP_DEBUG || false) }}'
75+
use_vertex_ai: '${{ vars.GOOGLE_GENAI_USE_VERTEXAI }}'
7576
settings: |-
7677
{
7778
"model": {
@@ -83,7 +84,7 @@ jobs:
8384
},
8485
"tools": {
8586
"core": [
86-
"run_shell_command(echo)"
87+
"run_shell_command(echo)"
8788
]
8889
}
8990
}

examples/workflows/pr-review/gemini-review.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,17 @@ jobs:
5252
REPOSITORY: '${{ github.repository }}'
5353
ADDITIONAL_CONTEXT: '${{ inputs.additional_context }}'
5454
with:
55-
gemini_cli_version: '${{ vars.GEMINI_CLI_VERSION }}'
56-
gcp_workload_identity_provider: '${{ vars.GCP_WIF_PROVIDER }}'
57-
gcp_project_id: '${{ vars.GOOGLE_CLOUD_PROJECT }}'
5855
gcp_location: '${{ vars.GOOGLE_CLOUD_LOCATION }}'
56+
gcp_project_id: '${{ vars.GOOGLE_CLOUD_PROJECT }}'
5957
gcp_service_account: '${{ vars.SERVICE_ACCOUNT_EMAIL }}'
58+
gcp_workload_identity_provider: '${{ vars.GCP_WIF_PROVIDER }}'
6059
gemini_api_key: '${{ secrets.GEMINI_API_KEY }}'
61-
use_vertex_ai: '${{ vars.GOOGLE_GENAI_USE_VERTEXAI }}'
60+
gemini_cli_version: '${{ vars.GEMINI_CLI_VERSION }}'
61+
gemini_debug: '${{ fromJSON(vars.DEBUG || vars.ACTIONS_STEP_DEBUG || false) }}'
62+
gemini_model: '${{ vars.GEMINI_MODEL }}'
6263
google_api_key: '${{ secrets.GOOGLE_API_KEY }}'
6364
use_gemini_code_assist: '${{ vars.GOOGLE_GENAI_USE_GCA }}'
64-
gemini_debug: '${{ fromJSON(vars.DEBUG || vars.ACTIONS_STEP_DEBUG || false) }}'
65+
use_vertex_ai: '${{ vars.GOOGLE_GENAI_USE_VERTEXAI }}'
6566
settings: |-
6667
{
6768
"model": {

0 commit comments

Comments
 (0)