-
Notifications
You must be signed in to change notification settings - Fork 1.1k
chore: GitHub Actions workflow to generate new client library #10179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
e313fee
181f802
aad1040
2e1ef6a
f766b2c
24a8b39
d1fe119
07d1762
a096c7c
b61577e
6a53ab9
10f9068
2da7fbf
8855e9a
9b65c2b
9e286e9
b93107e
c869604
7ea2f64
8222925
7e9162d
03e746d
72cfefa
4299d4b
6611ec1
4d2cebb
4c57f8f
538b16d
4bb1dda
473c27c
f3fa637
9319d8b
63607c4
1d22d73
5830b21
63bf9e6
f4e8d71
741e7bd
ce0a744
c3ca1d2
a9dcd70
ac16f1d
5d0e9c3
b975972
2fb8246
097a778
26162d0
9ef6e56
f255a2b
99857c0
7beb584
13dfea1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,12 +5,37 @@ google-cloud-java monorepo. | |
|
|
||
| **This tool is for repository maintainers only. Not for library users.** | ||
|
|
||
| ## Prerequisites | ||
|
|
||
| This section is only needed for the first run of this script. If it's already | ||
| ## Run via github action | ||
|
|
||
| You can save the time to setup the environment by calling the | ||
| [`generate_new_client.yaml` github action](https://github.com/googleapis/google-cloud-java/actions/workflows/generate_new_client.yaml) directly. You can jump to | ||
| [this section](https://github.com/googleapis/google-cloud-java/blob/main/generation/new_client/README.md#run-client-generation-script) | ||
| to find workflow arguments. | ||
|
|
||
| > ![IMPORTANT] | ||
| > Not all the `new-client.py` arguments are available in the Github Action. | ||
| > Please refer to | ||
| > [this | ||
| > section](https://github.com/googleapis/google-cloud-java/blob/main/generation/new_client/README.md#advanced-options) | ||
| > for more arguments (it requires to setup a local environment). | ||
| > The arguments currently supported by the workflow are: | ||
| > - [API short Name (`api_shortname`)](https://github.com/googleapis/google-cloud-java/blob/main/generation/new_client/README.md#api-short-name) | ||
| > - [Proto path (`proto_path`)](https://github.com/googleapis/google-cloud-java/blob/main/generation/new_client/README.md#proto-path) | ||
| > - [Name pretty (`name_pretty`)](https://github.com/googleapis/google-cloud-java/blob/main/generation/new_client/README.md#name-pretty) | ||
| > - [Product Docs (`product_docs`)](https://github.com/googleapis/google-cloud-java/blob/main/generation/new_client/README.md#product-docs) | ||
| > - [REST Docs (`rest_docs`)](https://github.com/googleapis/google-cloud-java/blob/main/generation/new_client/README.md#rest-docs) | ||
| > - [RPC Docs (`rpc_docs`)](https://github.com/googleapis/google-cloud-java/blob/main/generation/new_client/README.md#rpc-docs) | ||
| > - [API description (`api_description`)](https://github.com/googleapis/google-cloud-java/blob/main/generation/new_client/README.md#api-description) | ||
| > - [`transport`](https://github.com/googleapis/google-cloud-java/blob/main/generation/new_client/README.md#advanced-options) | ||
| > - [`destination_name`](https://github.com/googleapis/google-cloud-java/blob/main/generation/new_client/README.md#advanced-options) | ||
| > - [`distribution_name`](https://github.com/googleapis/google-cloud-java/blob/main/generation/new_client/README.md#advanced-options) | ||
|
|
||
|
|
||
| ## Prerequisites (for local environment) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you bring environment setup to the bottom? It's now not that important.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'Ensure no Release Please "snapshot" pull request open', which is not environment setup, is still valid. |
||
|
|
||
| This section is only needed for the first _local_ run of this script. If it's already | ||
| done, go to "Run client generation script" section. | ||
|
|
||
|
|
||
| ### Environment | ||
|
|
||
| Use Linux environment. | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This reads as if this is a good option for the reader. Would you rewrite this is the way for the reader to follow?
In other words, don't give the reader a task of determining whether they should use GitHub Actions or new-client.py script.