Skip to content

Commit 2999753

Browse files
authored
ci: use '-branch' option in Cloud Builds (#1914)
The branch option helps us to test the Librarian's generate and stage-release behavior without touching the main branch of the SDK repository. The flag has been added in #1893. Let's use the flag in the Cloud Builds YAML files. By default, "main" is passed to the variable (cl/802643045). I have to wait for the librarian container image update so that the CLI interprets the `-push` option.
1 parent b8dc941 commit 2999753

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

infra/prod/generate.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ steps:
5454
- 'generate'
5555
- '-repo'
5656
- '/workspace/$_REPOSITORY'
57+
- '-branch=$_BRANCH'
5758
- '-library'
5859
- $_LIBRARY_ID
5960
- '-api-source'

infra/prod/stage-release.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ steps:
4848
- 'init'
4949
- '-repo'
5050
- '/workspace/$_REPOSITORY'
51+
- '-branch=$_BRANCH'
5152
- '-library'
5253
- $_LIBRARY_ID
5354
- '-output'

0 commit comments

Comments
 (0)