Skip to content

Commit e265870

Browse files
committed
Sort inputs alphabetically in action.yml
- Reorganized all input parameters in alphabetical order - Updated auto-generated documentation to reflect new order - Makes it easier to parse and find specific inputs - Addresses issue #280
1 parent 1d10fa1 commit e265870

2 files changed

Lines changed: 46 additions & 46 deletions

File tree

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -150,34 +150,34 @@ go to the [Gemini Assistant workflow documentation](./examples/workflows/gemini-
150150

151151
<!-- BEGIN_AUTOGEN_INPUTS -->
152152

153-
- <a name="prompt"></a><a href="#user-content-prompt"><code>prompt</code></a>: _(Optional, default: `You are a helpful assistant.`)_ A string passed to the Gemini CLI's [`--prompt` argument](https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/configuration.md#command-line-arguments).
154-
155-
- <a name="settings"></a><a href="#user-content-settings"><code>settings</code></a>: _(Optional)_ A JSON string written to `.gemini/settings.json` to configure the CLI's _project_ settings.
156-
For more details, see the documentation on [settings files](https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/configuration.md#settings-files).
157-
158-
- <a name="gemini_api_key"></a><a href="#user-content-gemini_api_key"><code>gemini_api_key</code></a>: _(Optional)_ The API key for the Gemini API.
153+
- <a name="gcp_location"></a><a href="#user-content-gcp_location"><code>gcp_location</code></a>: _(Optional)_ The Google Cloud location.
159154

160155
- <a name="gcp_project_id"></a><a href="#user-content-gcp_project_id"><code>gcp_project_id</code></a>: _(Optional)_ The Google Cloud project ID.
161156

162-
- <a name="gcp_location"></a><a href="#user-content-gcp_location"><code>gcp_location</code></a>: _(Optional)_ The Google Cloud location.
157+
- <a name="gcp_service_account"></a><a href="#user-content-gcp_service_account"><code>gcp_service_account</code></a>: _(Optional)_ The Google Cloud service account email.
163158

164159
- <a name="gcp_workload_identity_provider"></a><a href="#user-content-gcp_workload_identity_provider"><code>gcp_workload_identity_provider</code></a>: _(Optional)_ The Google Cloud Workload Identity Provider.
165160

166-
- <a name="gcp_service_account"></a><a href="#user-content-gcp_service_account"><code>gcp_service_account</code></a>: _(Optional)_ The Google Cloud service account email.
161+
- <a name="gemini_api_key"></a><a href="#user-content-gemini_api_key"><code>gemini_api_key</code></a>: _(Optional)_ The API key for the Gemini API.
167162

168-
- <a name="use_vertex_ai"></a><a href="#user-content-use_vertex_ai"><code>use_vertex_ai</code></a>: _(Optional, default: `false`)_ Whether to use Vertex AI for Gemini model access instead of the default Gemini API key.
169-
For more information, see the [Gemini CLI documentation](https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/authentication.md).
163+
- <a name="gemini_cli_version"></a><a href="#user-content-gemini_cli_version"><code>gemini_cli_version</code></a>: _(Optional, default: `latest`)_ The version of the Gemini CLI to install. Can be "latest", "preview", "nightly", a specific version number, or a git branch, tag, or commit. For more information, see [Gemini CLI releases](https://github.com/google-gemini/gemini-cli/blob/main/docs/releases.md).
170164

171-
- <a name="use_gemini_code_assist"></a><a href="#user-content-use_gemini_code_assist"><code>use_gemini_code_assist</code></a>: _(Optional, default: `false`)_ Whether to use Code Assist for Gemini model access instead of the default Gemini API key.
172-
For more information, see the [Gemini CLI documentation](https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/authentication.md).
165+
- <a name="gemini_debug"></a><a href="#user-content-gemini_debug"><code>gemini_debug</code></a>: _(Optional)_ Enable debug logging and output streaming.
173166

174-
- <a name="gemini_cli_version"></a><a href="#user-content-gemini_cli_version"><code>gemini_cli_version</code></a>: _(Optional, default: `latest`)_ The version of the Gemini CLI to install. Can be "latest", "preview", "nightly", a specific version number, or a git branch, tag, or commit. For more information, see [Gemini CLI releases](https://github.com/google-gemini/gemini-cli/blob/main/docs/releases.md).
167+
- <a name="gemini_model"></a><a href="#user-content-gemini_model"><code>gemini_model</code></a>: _(Optional)_ The model to use with Gemini.
175168

176169
- <a name="google_api_key"></a><a href="#user-content-google_api_key"><code>google_api_key</code></a>: _(Optional)_ The Vertex AI API key to use with Gemini.
177170

178-
- <a name="gemini_debug"></a><a href="#user-content-gemini_debug"><code>gemini_debug</code></a>: _(Optional)_ Enable debug logging and output streaming.
171+
- <a name="prompt"></a><a href="#user-content-prompt"><code>prompt</code></a>: _(Optional, default: `You are a helpful assistant.`)_ A string passed to the Gemini CLI's [`--prompt` argument](https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/configuration.md#command-line-arguments).
179172

180-
- <a name="gemini_model"></a><a href="#user-content-gemini_model"><code>gemini_model</code></a>: _(Optional)_ The model to use with Gemini.
173+
- <a name="settings"></a><a href="#user-content-settings"><code>settings</code></a>: _(Optional)_ A JSON string written to `.gemini/settings.json` to configure the CLI's _project_ settings.
174+
For more details, see the documentation on [settings files](https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/configuration.md#settings-files).
175+
176+
- <a name="use_gemini_code_assist"></a><a href="#user-content-use_gemini_code_assist"><code>use_gemini_code_assist</code></a>: _(Optional, default: `false`)_ Whether to use Code Assist for Gemini model access instead of the default Gemini API key.
177+
For more information, see the [Gemini CLI documentation](https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/authentication.md).
178+
179+
- <a name="use_vertex_ai"></a><a href="#user-content-use_vertex_ai"><code>use_vertex_ai</code></a>: _(Optional, default: `false`)_ Whether to use Vertex AI for Gemini model access instead of the default Gemini API key.
180+
For more information, see the [Gemini CLI documentation](https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/authentication.md).
181181

182182

183183
<!-- END_AUTOGEN_INPUTS -->

action.yml

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -18,56 +18,56 @@ description: |-
1818
Invoke the Gemini CLI from a GitHub Action.
1919
2020
inputs:
21-
prompt:
22-
description: |-
23-
A string passed to the Gemini CLI's [`--prompt` argument](https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/configuration.md#command-line-arguments).
24-
required: false
25-
default: 'You are a helpful assistant.'
26-
settings:
27-
description: |-
28-
A JSON string written to `.gemini/settings.json` to configure the CLI's _project_ settings.
29-
For more details, see the documentation on [settings files](https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/configuration.md#settings-files).
30-
required: false
31-
gemini_api_key:
32-
description: 'The API key for the Gemini API.'
33-
required: false
34-
gcp_project_id:
35-
description: 'The Google Cloud project ID.'
36-
required: false
3721
gcp_location:
3822
description: 'The Google Cloud location.'
3923
required: false
40-
gcp_workload_identity_provider:
41-
description: 'The Google Cloud Workload Identity Provider.'
24+
gcp_project_id:
25+
description: 'The Google Cloud project ID.'
4226
required: false
4327
gcp_service_account:
4428
description: 'The Google Cloud service account email.'
4529
required: false
46-
use_vertex_ai:
47-
description: |-
48-
Whether to use Vertex AI for Gemini model access instead of the default Gemini API key.
49-
For more information, see the [Gemini CLI documentation](https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/authentication.md).
30+
gcp_workload_identity_provider:
31+
description: 'The Google Cloud Workload Identity Provider.'
5032
required: false
51-
default: 'false'
52-
use_gemini_code_assist:
53-
description: |-
54-
Whether to use Code Assist for Gemini model access instead of the default Gemini API key.
55-
For more information, see the [Gemini CLI documentation](https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/authentication.md).
33+
gemini_api_key:
34+
description: 'The API key for the Gemini API.'
5635
required: false
57-
default: 'false'
5836
gemini_cli_version:
5937
description: 'The version of the Gemini CLI to install. Can be "latest", "preview", "nightly", a specific version number, or a git branch, tag, or commit. For more information, see [Gemini CLI releases](https://github.com/google-gemini/gemini-cli/blob/main/docs/releases.md).'
6038
required: false
6139
default: 'latest'
62-
google_api_key:
63-
description: 'The Vertex AI API key to use with Gemini.'
64-
required: false
6540
gemini_debug:
6641
description: 'Enable debug logging and output streaming.'
6742
required: false
6843
gemini_model:
6944
description: 'The model to use with Gemini.'
7045
required: false
46+
google_api_key:
47+
description: 'The Vertex AI API key to use with Gemini.'
48+
required: false
49+
prompt:
50+
description: |-
51+
A string passed to the Gemini CLI's [`--prompt` argument](https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/configuration.md#command-line-arguments).
52+
required: false
53+
default: 'You are a helpful assistant.'
54+
settings:
55+
description: |-
56+
A JSON string written to `.gemini/settings.json` to configure the CLI's _project_ settings.
57+
For more details, see the documentation on [settings files](https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/configuration.md#settings-files).
58+
required: false
59+
use_gemini_code_assist:
60+
description: |-
61+
Whether to use Code Assist for Gemini model access instead of the default Gemini API key.
62+
For more information, see the [Gemini CLI documentation](https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/authentication.md).
63+
required: false
64+
default: 'false'
65+
use_vertex_ai:
66+
description: |-
67+
Whether to use Vertex AI for Gemini model access instead of the default Gemini API key.
68+
For more information, see the [Gemini CLI documentation](https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/authentication.md).
69+
required: false
70+
default: 'false'
7171

7272
outputs:
7373
summary:

0 commit comments

Comments
 (0)